Class JobUpdateTimeoutCommandImpl
java.lang.Object
io.camunda.zeebe.client.impl.command.JobUpdateTimeoutCommandImpl
- All Implemented Interfaces:
FinalCommandStep<UpdateTimeoutJobResponse>,UpdateTimeoutJobCommandStep1,UpdateTimeoutJobCommandStep1.UpdateTimeoutJobCommandStep2
public class JobUpdateTimeoutCommandImpl
extends Object
implements UpdateTimeoutJobCommandStep1, UpdateTimeoutJobCommandStep1.UpdateTimeoutJobCommandStep2
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.client.api.command.UpdateTimeoutJobCommandStep1
UpdateTimeoutJobCommandStep1.UpdateTimeoutJobCommandStep2 -
Constructor Summary
ConstructorsConstructorDescriptionJobUpdateTimeoutCommandImpl(GatewayGrpc.GatewayStub asyncStub, long jobKey, Duration requestTimeout, Predicate<Throwable> retryPredicate) -
Method Summary
Modifier and TypeMethodDescriptionrequestTimeout(Duration requestTimeout) Sets the request timeout for the command.send()Sends the command to the Zeebe broker.timeout(long timeout) Set the timeout of this job.Set the timeout of this job.
-
Constructor Details
-
JobUpdateTimeoutCommandImpl
public JobUpdateTimeoutCommandImpl(GatewayGrpc.GatewayStub asyncStub, long jobKey, Duration requestTimeout, Predicate<Throwable> retryPredicate)
-
-
Method Details
-
timeout
Description copied from interface:UpdateTimeoutJobCommandStep1Set the timeout of this job.Timeout value in millis is used to calculate a new job deadline. This will happen when the command is processed. The timeout value will be added to the current time then.
- Specified by:
timeoutin interfaceUpdateTimeoutJobCommandStep1- Parameters:
timeout- the timeout of this job- Returns:
- the builder for this command. Call
to complete the command and send it to the broker.
invalid reference
#send()
-
timeout
Description copied from interface:UpdateTimeoutJobCommandStep1Set the timeout of this job.Timeout value passed as a duration is used to calculate a new job deadline. This will happen when the command is processed. The timeout value will be added to the current time then.
- Specified by:
timeoutin interfaceUpdateTimeoutJobCommandStep1- Parameters:
timeout- the time as duration (e.g. "Duration.ofMinutes(5)")- Returns:
- the builder for this command. Call
to complete the command and send it to the broker.
invalid reference
#send()
-
requestTimeout
Description copied from interface:FinalCommandStepSets the request timeout for the command. The default request timeout can be configured usingZeebeClientBuilder.defaultRequestTimeout(Duration).- Specified by:
requestTimeoutin interfaceFinalCommandStep<UpdateTimeoutJobResponse>- Parameters:
requestTimeout- the request timeout- Returns:
- the configured command
-
send
Description copied from interface:FinalCommandStepSends the command to the Zeebe broker. This operation is asynchronous. In case of success, the future returns the event that was generated by the Zeebe broker in response to the command.Call
ZeebeFuture.join()to wait until the response is available.Future<JobEventinvalid input: '>' future = command.send(); JobEvent event = future.join();- Specified by:
sendin interfaceFinalCommandStep<UpdateTimeoutJobResponse>- Returns:
- a future tracking state of success/failure of the command.
-