Class ProcessDefinitionElementStatisticsRequestImpl
java.lang.Object
io.camunda.client.impl.search.request.TypedSearchRequestPropertyProvider<ProcessDefinitionElementStatisticsQuery>
io.camunda.client.impl.statistics.request.ProcessDefinitionElementStatisticsRequestImpl
- All Implemented Interfaces:
FinalCommandStep<List<ProcessElementStatistics>>,ProcessDefinitionElementStatisticsRequest,StatisticsRequest<ProcessDefinitionStatisticsFilter,ProcessDefinitionElementStatisticsRequest>
public class ProcessDefinitionElementStatisticsRequestImpl
extends TypedSearchRequestPropertyProvider<ProcessDefinitionElementStatisticsQuery>
implements ProcessDefinitionElementStatisticsRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.client.api.statistics.request.StatisticsRequest
StatisticsRequest.StatisticsRequestFilter -
Constructor Summary
ConstructorsConstructorDescriptionProcessDefinitionElementStatisticsRequestImpl(HttpClient httpClient, JsonMapper jsonMapper, long processDefinitionKey) -
Method Summary
Modifier and TypeMethodDescriptionSets the filter to be included in the statistics request.Provides a fluent builder to create a filter to be included in the statistics request.protected ProcessDefinitionElementStatisticsQueryrequestTimeout(Duration requestTimeout) Sets the request timeout for the command.send()Sends the command to the Camunda gateway.Methods inherited from class io.camunda.client.impl.search.request.TypedSearchRequestPropertyProvider
provideSearchRequestProperty
-
Constructor Details
-
ProcessDefinitionElementStatisticsRequestImpl
public ProcessDefinitionElementStatisticsRequestImpl(HttpClient httpClient, JsonMapper jsonMapper, long processDefinitionKey)
-
-
Method Details
-
requestTimeout
Description copied from interface:FinalCommandStepSets the request timeout for the command. The default request timeout can be configured usingCamundaClientBuilder.defaultRequestTimeout(Duration).- Specified by:
requestTimeoutin interfaceFinalCommandStep<List<ProcessElementStatistics>>- Parameters:
requestTimeout- the request timeout- Returns:
- the configured command
-
send
Description copied from interface:FinalCommandStepSends the command to the Camunda gateway. This operation is asynchronous. In case of success, the future returns the event that was generated by the Camunda gateway in response to the command.Call
CamundaFuture.join()to wait until the response is available.Future<JobEventinvalid input: '>' future = command.send(); JobEvent event = future.join();- Specified by:
sendin interfaceFinalCommandStep<List<ProcessElementStatistics>>- Returns:
- a future tracking state of success/failure of the command.
-
filter
Description copied from interface:StatisticsRequestSets the filter to be included in the statistics request.- Specified by:
filterin interfaceStatisticsRequest<ProcessDefinitionStatisticsFilter,ProcessDefinitionElementStatisticsRequest> - Parameters:
value- the filter- Returns:
- the builder for the statistics request
-
filter
public ProcessDefinitionElementStatisticsRequest filter(Consumer<ProcessDefinitionStatisticsFilter> fn) Description copied from interface:StatisticsRequestProvides a fluent builder to create a filter to be included in the statistics request.- Specified by:
filterin interfaceStatisticsRequest<ProcessDefinitionStatisticsFilter,ProcessDefinitionElementStatisticsRequest> - Parameters:
fn- consumer to create the filter- Returns:
- the builder for the statistics request
-
getSearchRequestProperty
- Specified by:
getSearchRequestPropertyin classTypedSearchRequestPropertyProvider<ProcessDefinitionElementStatisticsQuery>
-