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 |
|---|---|
org.jboss.netty.buffer.ChannelBuffer |
buffer()
encode the current Control Message into a channel buffer
|
int |
encodeLength() |
static ControlMessage |
mkMessage(short encoded) |
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.jboss.netty.buffer.ChannelBufferOutputStream bout) |
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)
encoded - status codepublic int encodeLength()
encodeLength in interface INettySerializablepublic org.jboss.netty.buffer.ChannelBuffer buffer()
throws IOException
encode the current Control Message into a channel buffer
buffer in interface INettySerializableIOExceptionpublic static ControlMessage read(byte[] serial)
public void write(org.jboss.netty.buffer.ChannelBufferOutputStream bout)
throws IOException
IOExceptionCopyright © 2022 The Apache Software Foundation. All Rights Reserved.