Class BroadcastSignalCommandImpl
java.lang.Object
io.camunda.zeebe.client.impl.command.CommandWithVariables<BroadcastSignalCommandImpl>
io.camunda.zeebe.client.impl.command.BroadcastSignalCommandImpl
- All Implemented Interfaces:
BroadcastSignalCommandStep1,BroadcastSignalCommandStep1.BroadcastSignalCommandStep2,FinalCommandStep<BroadcastSignalResponse>
public final class BroadcastSignalCommandImpl
extends CommandWithVariables<BroadcastSignalCommandImpl>
implements BroadcastSignalCommandStep1, BroadcastSignalCommandStep1.BroadcastSignalCommandStep2
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.camunda.zeebe.client.api.command.BroadcastSignalCommandStep1
BroadcastSignalCommandStep1.BroadcastSignalCommandStep2 -
Field Summary
Fields inherited from class io.camunda.zeebe.client.impl.command.CommandWithVariables
objectMapper -
Constructor Summary
ConstructorsConstructorDescriptionBroadcastSignalCommandImpl(GatewayGrpc.GatewayStub asyncStub, ZeebeClientConfiguration configuration, JsonMapper jsonMapper, 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.protected BroadcastSignalCommandImplsetVariablesInternal(String variables) signalName(String signalName) Set the name of the signal.Methods inherited from class io.camunda.zeebe.client.impl.command.CommandWithVariables
variables, variables, variables, variablesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.zeebe.client.api.command.BroadcastSignalCommandStep1.BroadcastSignalCommandStep2
variables, variables, variables, variables
-
Constructor Details
-
BroadcastSignalCommandImpl
public BroadcastSignalCommandImpl(GatewayGrpc.GatewayStub asyncStub, ZeebeClientConfiguration configuration, JsonMapper jsonMapper, Predicate<Throwable> retryPredicate)
-
-
Method Details
-
setVariablesInternal
- Specified by:
setVariablesInternalin classCommandWithVariables<BroadcastSignalCommandImpl>
-
signalName
Description copied from interface:BroadcastSignalCommandStep1Set the name of the signal.- Specified by:
signalNamein interfaceBroadcastSignalCommandStep1- Parameters:
signalName- the name of the signal- Returns:
- the builder for this command
-
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<BroadcastSignalResponse>- 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<JobEvent> future = command.send(); JobEvent event = future.join();
- Specified by:
sendin interfaceFinalCommandStep<BroadcastSignalResponse>- Returns:
- a future tracking state of success/failure of the command.
-