Class JobTimeSeriesStatisticsRequestImpl
java.lang.Object
io.camunda.client.impl.search.request.TypedSearchRequestPropertyProvider<JobTimeSeriesStatisticsQuery>
io.camunda.client.impl.statistics.request.JobTimeSeriesStatisticsRequestImpl
- All Implemented Interfaces:
FinalCommandStep<JobTimeSeriesStatistics>,TypedPageableRequest<CursorForwardPage,,JobTimeSeriesStatisticsRequest> JobTimeSeriesStatisticsRequest
public class JobTimeSeriesStatisticsRequestImpl
extends TypedSearchRequestPropertyProvider<JobTimeSeriesStatisticsQuery>
implements JobTimeSeriesStatisticsRequest
-
Constructor Summary
ConstructorsConstructorDescriptionJobTimeSeriesStatisticsRequestImpl(HttpClient httpClient, JsonMapper jsonMapper, OffsetDateTime from, OffsetDateTime to, String jobType) -
Method Summary
Modifier and TypeMethodDescriptionprotected JobTimeSeriesStatisticsQuerypage(CursorForwardPage value) Support for pagination.Provides a fluent builder to support pagination.requestTimeout(Duration requestTimeout) Sets the request timeout for the command.resolution(Duration resolution) Sets the time bucket resolution.send()Sends the command to the Camunda gateway.Methods 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
-
JobTimeSeriesStatisticsRequestImpl
public JobTimeSeriesStatisticsRequestImpl(HttpClient httpClient, JsonMapper jsonMapper, OffsetDateTime from, OffsetDateTime to, String jobType)
-
-
Method Details
-
resolution
Description copied from interface:JobTimeSeriesStatisticsRequestSets the time bucket resolution. If not set the server will auto-compute a sensible default.- Specified by:
resolutionin interfaceJobTimeSeriesStatisticsRequest- Parameters:
resolution- the desired bucket size (e.g.Duration.ofMinutes(1))- Returns:
- this request builder
-
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<JobTimeSeriesStatistics>- 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<JobTimeSeriesStatistics>- Returns:
- a future tracking state of success/failure of the command.
-
getSearchRequestProperty
- Specified by:
getSearchRequestPropertyin classTypedSearchRequestPropertyProvider<JobTimeSeriesStatisticsQuery>
-
page
Description copied from interface:TypedPageableRequestSupport for pagination.- Specified by:
pagein interfaceTypedPageableRequest<CursorForwardPage,JobTimeSeriesStatisticsRequest> - Parameters:
value- the next page- Returns:
- the builder for the search request
-
page
Description copied from interface:TypedPageableRequestProvides a fluent builder to support pagination.- Specified by:
pagein interfaceTypedPageableRequest<CursorForwardPage,JobTimeSeriesStatisticsRequest> - Parameters:
fn- consumer to support pagination- Returns:
- the builder for the search request
-