Enum Class MessageHandler.State
- All Implemented Interfaces:
Serializable,Comparable<MessageHandler.State>,Constable
- Enclosing interface:
MessageHandler<T extends Message<? extends MessageBuffer>>
Represents the state after handling a message.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe message was handled and should not be processed further.Indicates that the message has been modified but should still be passed through to the next handler or processing step.The message was not handled and should be passed through for further processing. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageHandler.StateReturns the enum constant of this class with the specified name.static MessageHandler.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HANDLED
The message was handled and should not be processed further. -
UNHANDLED
The message was not handled and should be passed through for further processing. -
MODIFIED
Indicates that the message has been modified but should still be passed through to the next handler or processing step.
-
-
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
-