Class TopologyRequestImpl

java.lang.Object
io.camunda.zeebe.client.impl.command.TopologyRequestImpl
All Implemented Interfaces:
CommandWithCommunicationApiStep<TopologyRequestStep1>, FinalCommandStep<Topology>, TopologyRequestStep1

public final class TopologyRequestImpl extends Object implements TopologyRequestStep1
  • Constructor Details

  • Method Details

    • useRest

      public TopologyRequestStep1 useRest()
      Description copied from interface: CommandWithCommunicationApiStep
      Experimental: This method is under development, and as such using it may have no effect on the command builder when called. While unimplemented, it simply returns the command builder instance unchanged. This method already exists for software that is building support for a REST API in Zeebe, and already wants to use this API during its development. As support for REST is added to Zeebe, each of the commands that implement this method may start to take effect. Until this warning is removed, anything described below may not yet have taken effect, and the interface and its description are subject to change.

      Sets REST as the communication API for this command. If this command doesn't support communication over REST, it simply returns the command builder instance unchanged. The default communication API can be configured using ZeebeClientBuilder.preferRestOverGrpc(boolean).

      Specified by:
      useRest in interface CommandWithCommunicationApiStep<TopologyRequestStep1>
      Returns:
      the configured command
    • useGrpc

      public TopologyRequestStep1 useGrpc()
      Description copied from interface: CommandWithCommunicationApiStep
      Experimental: This method is under development, and as such using it may have no effect on the command builder when called. While unimplemented, it simply returns the command builder instance unchanged. This method already exists for software that is building support for a REST API in Zeebe, and already wants to use this API during its development. As support for REST is added to Zeebe, each of the commands that implement this method may start to take effect. Until this warning is removed, anything described below may not yet have taken effect, and the interface and its description are subject to change.

      Sets gRPC as the communication API for this command. If this command doesn't support communication over gRPC, it simply returns the command builder instance unchanged. The default communication API can be configured using ZeebeClientBuilder.preferRestOverGrpc(boolean).

      Specified by:
      useGrpc in interface CommandWithCommunicationApiStep<TopologyRequestStep1>
      Returns:
      the configured command
    • 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 using ZeebeClientBuilder.defaultRequestTimeout(Duration).
      Specified by:
      requestTimeout in interface FinalCommandStep<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<JobEventinvalid input: '&#62' future = command.send();
       JobEvent event = future.join();
       
      Specified by:
      send in interface FinalCommandStep<Topology>
      Returns:
      a future tracking state of success/failure of the command.