Package io.camunda.zeebe.transport
Enum Class RequestType
- All Implemented Interfaces:
Serializable,Comparable<RequestType>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetId()static RequestTypeReturns the enum constant of this class with the specified name.static RequestType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMMAND
-
QUERY
-
ADMIN
-
BACKUP
-
SNAPSHOT
-
UNKNOWN
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getId
-