Package io.atomix.cluster.messaging.impl
Enum Class ProtocolReply.Status
- All Implemented Interfaces:
Serializable,Comparable<ProtocolReply.Status>,Constable
- Enclosing class:
- ProtocolReply
Message status.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionResponse status signifying an exception handling the message.Response status signifying no registered handler.All ok.Response status signifying invalid message structure. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProtocolReply.StatusforId(int id) Returns the status enum associated with the given ID.intid()Returns the unique status ID.static ProtocolReply.StatusReturns the enum constant of this class with the specified name.static ProtocolReply.Status[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
All ok. -
ERROR_NO_HANDLER
Response status signifying no registered handler. -
ERROR_HANDLER_EXCEPTION
Response status signifying an exception handling the message. -
PROTOCOL_EXCEPTION
Response status signifying invalid message structure.
-
-
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
-
id
public int id()Returns the unique status ID.- Returns:
- the unique status ID.
-
forId
Returns the status enum associated with the given ID.- Parameters:
id- the status ID.- Returns:
- the status enum for the given ID.
-