public enum ControlMessage extends Enum<ControlMessage> implements INettySerializable
Enum Constant and Description |
---|
CLOSE_MESSAGE |
EOB_MESSAGE |
FAILURE_RESPONSE |
OK_RESPONSE |
SASL_COMPLETE_REQUEST |
SASL_TOKEN_MESSAGE_REQUEST |
Modifier and Type | Method and Description |
---|---|
int |
encodeLength() |
static ControlMessage |
mkMessage(short encoded)
Create message.
|
static ControlMessage |
read(byte[] serial) |
static ControlMessage |
valueOf(String name)
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.
|
public static final ControlMessage CLOSE_MESSAGE
public static final ControlMessage EOB_MESSAGE
public static final ControlMessage OK_RESPONSE
public static final ControlMessage FAILURE_RESPONSE
public static final ControlMessage SASL_TOKEN_MESSAGE_REQUEST
public static final ControlMessage SASL_COMPLETE_REQUEST
public static ControlMessage[] values()
for (ControlMessage c : ControlMessage.values()) System.out.println(c);
public static ControlMessage valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ControlMessage mkMessage(short encoded)
Create message.
encoded
- status codepublic static ControlMessage read(byte[] serial)
public int encodeLength()
encodeLength
in interface INettySerializable
public void write(org.apache.storm.shade.io.netty.buffer.ByteBuf buf)
INettySerializable
Serialize this object to ByteBuf.
write
in interface INettySerializable
buf
- The ByteBuf to serialize toCopyright © 2022 The Apache Software Foundation. All rights reserved.