Class CompleteJobCommandImpl
- java.lang.Object
-
- io.camunda.zeebe.client.impl.command.CommandWithVariables<CompleteJobCommandStep1>
-
- io.camunda.zeebe.client.impl.command.CompleteJobCommandImpl
-
- All Implemented Interfaces:
CompleteJobCommandStep1
,FinalCommandStep<CompleteJobResponse>
public final class CompleteJobCommandImpl extends CommandWithVariables<CompleteJobCommandStep1> implements CompleteJobCommandStep1
-
-
Field Summary
-
Fields inherited from class io.camunda.zeebe.client.impl.command.CommandWithVariables
objectMapper
-
-
Constructor Summary
Constructors Constructor Description CompleteJobCommandImpl(GatewayGrpc.GatewayStub asyncStub, JsonMapper jsonMapper, long key, Duration requestTimeout, Predicate<Throwable> retryPredicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FinalCommandStep<CompleteJobResponse>
requestTimeout(Duration requestTimeout)
Sets the request timeout for the command.ZeebeFuture<CompleteJobResponse>
send()
Sends the command to the Zeebe broker.protected CompleteJobCommandStep1
setVariablesInternal(String variables)
-
Methods inherited from class io.camunda.zeebe.client.impl.command.CommandWithVariables
variables, variables, variables, variables
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.camunda.zeebe.client.api.command.CompleteJobCommandStep1
variables, variables, variables, variables
-
-
-
-
Constructor Detail
-
CompleteJobCommandImpl
public CompleteJobCommandImpl(GatewayGrpc.GatewayStub asyncStub, JsonMapper jsonMapper, long key, Duration requestTimeout, Predicate<Throwable> retryPredicate)
-
-
Method Detail
-
requestTimeout
public FinalCommandStep<CompleteJobResponse> requestTimeout(Duration requestTimeout)
Description copied from interface:FinalCommandStep
Sets the request timeout for the command. The default request timeout can be configured usingZeebeClientBuilder.defaultRequestTimeout(Duration)
.- Specified by:
requestTimeout
in interfaceFinalCommandStep<CompleteJobResponse>
- Parameters:
requestTimeout
- the request timeout- Returns:
- the configured command
-
send
public ZeebeFuture<CompleteJobResponse> send()
Description copied from interface:FinalCommandStep
Sends 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<JobEvent> future = command.send(); JobEvent event = future.join();
- Specified by:
send
in interfaceFinalCommandStep<CompleteJobResponse>
- Returns:
- a future tracking state of success/failure of the command.
-
setVariablesInternal
protected CompleteJobCommandStep1 setVariablesInternal(String variables)
- Specified by:
setVariablesInternal
in classCommandWithVariables<CompleteJobCommandStep1>
-
-