Package io.zeebe.client.impl.command
Class ResolveIncidentCommandImpl
- java.lang.Object
-
- io.zeebe.client.impl.command.ResolveIncidentCommandImpl
-
- All Implemented Interfaces:
FinalCommandStep<ResolveIncidentResponse>
,ResolveIncidentCommandStep1
public final class ResolveIncidentCommandImpl extends Object implements ResolveIncidentCommandStep1
-
-
Constructor Summary
Constructors Constructor Description ResolveIncidentCommandImpl(GatewayGrpc.GatewayStub asyncStub, long incidentKey, Duration requestTimeout, Predicate<Throwable> retryPredicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FinalCommandStep<ResolveIncidentResponse>
requestTimeout(Duration requestTimeout)
Sets the request timeout for the command.ZeebeFuture<ResolveIncidentResponse>
send()
Sends the command to the Zeebe broker.
-
-
-
Constructor Detail
-
ResolveIncidentCommandImpl
public ResolveIncidentCommandImpl(GatewayGrpc.GatewayStub asyncStub, long incidentKey, Duration requestTimeout, Predicate<Throwable> retryPredicate)
-
-
Method Detail
-
requestTimeout
public FinalCommandStep<ResolveIncidentResponse> 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<ResolveIncidentResponse>
- Parameters:
requestTimeout
- the request timeout- Returns:
- the configured command
-
send
public ZeebeFuture<ResolveIncidentResponse> 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<ResolveIncidentResponse>
- Returns:
- a future tracking state of success/failure of the command.
-
-