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