Enum Class RequestType

java.lang.Object
java.lang.Enum<RequestType>
io.camunda.zeebe.transport.RequestType
All Implemented Interfaces:
Serializable, Comparable<RequestType>, Constable

public enum RequestType extends Enum<RequestType>
Defines the supported types of request that can be sent through the transport. A subscribed request handler will only receive requests of the request types it subscribed to.

Normally describing the supported request types should not be a transport concern, but an application concern. However, having it as part of the transport makes unsubscribing from all possible request types easier. Sending and handling a new request type in the application will also require adding it here.

  • Enum Constant Details

  • Method Details

    • values

      public static RequestType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RequestType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      public String getId()