Package org.apache.storm.messaging.netty
Enum ControlMessage
- All Implemented Interfaces:
Serializable
,Comparable<ControlMessage>
,java.lang.constant.Constable
,INettySerializable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionint
static ControlMessage
mkMessage
(short encoded) Create message.static ControlMessage
read
(byte[] serial) static ControlMessage
Returns the enum constant of this type with the specified name.static ControlMessage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.void
write
(org.apache.storm.shade.io.netty.buffer.ByteBuf buf) Serialize this object to ByteBuf.
-
Enum Constant Details
-
CLOSE_MESSAGE
-
EOB_MESSAGE
-
OK_RESPONSE
-
FAILURE_RESPONSE
-
SASL_TOKEN_MESSAGE_REQUEST
-
SASL_COMPLETE_REQUEST
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
mkMessage
Create message.- Parameters:
encoded
- status code- Returns:
- a control message per an encoded status code
-
read
-
encodeLength
public int encodeLength()- Specified by:
encodeLength
in interfaceINettySerializable
-
write
public void write(org.apache.storm.shade.io.netty.buffer.ByteBuf buf) Description copied from interface:INettySerializable
Serialize this object to ByteBuf.- Specified by:
write
in interfaceINettySerializable
- Parameters:
buf
- The ByteBuf to serialize to
-