Class ProcessDefinitionInstanceStatisticsRequestImpl
java.lang.Object
io.camunda.client.impl.search.request.TypedSearchRequestPropertyProvider<ProcessDefinitionInstanceStatisticsQuery>
io.camunda.client.impl.statistics.request.ProcessDefinitionInstanceStatisticsRequestImpl
- All Implemented Interfaces:
FinalCommandStep<SearchResponse<ProcessDefinitionInstanceStatistics>>,FinalSearchRequestStep<ProcessDefinitionInstanceStatistics>,TypedSortableRequest<ProcessDefinitionInstanceStatisticsSort,,ProcessDefinitionInstanceStatisticsRequest> ProcessDefinitionInstanceStatisticsRequest
public class ProcessDefinitionInstanceStatisticsRequestImpl
extends TypedSearchRequestPropertyProvider<ProcessDefinitionInstanceStatisticsQuery>
implements ProcessDefinitionInstanceStatisticsRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.client.api.search.request.TypedSortableRequest
TypedSortableRequest.SearchRequestSort<S extends TypedSortableRequest.SearchRequestSort<S>> -
Constructor Summary
ConstructorsConstructorDescriptionProcessDefinitionInstanceStatisticsRequestImpl(HttpClient httpClient, JsonMapper jsonMapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected ProcessDefinitionInstanceStatisticsQuerypage(OffsetPage value) page(Consumer<OffsetPage> fn) requestTimeout(Duration requestTimeout) Sets the request timeout for the command.send()Sends the command to the Camunda gateway.Sets the sorting the returned entities should be sorted by.Provides a fluent builder to provide sorting options the returned entities should sorted byMethods inherited from class io.camunda.client.impl.search.request.TypedSearchRequestPropertyProvider
provideSearchRequestPropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.client.api.command.FinalCommandStep
execute
-
Constructor Details
-
ProcessDefinitionInstanceStatisticsRequestImpl
-
-
Method Details
-
requestTimeout
public FinalSearchRequestStep<ProcessDefinitionInstanceStatistics> requestTimeout(Duration 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<SearchResponse<ProcessDefinitionInstanceStatistics>>- Specified by:
requestTimeoutin interfaceFinalSearchRequestStep<ProcessDefinitionInstanceStatistics>- 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<SearchResponse<ProcessDefinitionInstanceStatistics>>- Returns:
- a future tracking state of success/failure of the command.
-
page
- Specified by:
pagein interfaceProcessDefinitionInstanceStatisticsRequest
-
page
- Specified by:
pagein interfaceProcessDefinitionInstanceStatisticsRequest
-
sort
public ProcessDefinitionInstanceStatisticsRequest sort(ProcessDefinitionInstanceStatisticsSort value) Description copied from interface:TypedSortableRequestSets the sorting the returned entities should be sorted by.- Specified by:
sortin interfaceTypedSortableRequest<ProcessDefinitionInstanceStatisticsSort,ProcessDefinitionInstanceStatisticsRequest> - Parameters:
value- the sort options- Returns:
- the builder for the search request
-
sort
public ProcessDefinitionInstanceStatisticsRequest sort(Consumer<ProcessDefinitionInstanceStatisticsSort> fn) Description copied from interface:TypedSortableRequestProvides a fluent builder to provide sorting options the returned entities should sorted by- Specified by:
sortin interfaceTypedSortableRequest<ProcessDefinitionInstanceStatisticsSort,ProcessDefinitionInstanceStatisticsRequest> - Parameters:
fn- consumer to create the sort options- Returns:
- the builder for the search request
-
getSearchRequestProperty
- Specified by:
getSearchRequestPropertyin classTypedSearchRequestPropertyProvider<ProcessDefinitionInstanceStatisticsQuery>
-