com.datastax.cassandra.transport
Enum Message.Type
java.lang.Object
java.lang.Enum<Message.Type>
com.datastax.cassandra.transport.Message.Type
- All Implemented Interfaces:
- Serializable, Comparable<Message.Type>
- Enclosing class:
- Message
public static enum Message.Type
- extends Enum<Message.Type>
ERROR
public static final Message.Type ERROR
STARTUP
public static final Message.Type STARTUP
READY
public static final Message.Type READY
AUTHENTICATE
public static final Message.Type AUTHENTICATE
CREDENTIALS
public static final Message.Type CREDENTIALS
OPTIONS
public static final Message.Type OPTIONS
SUPPORTED
public static final Message.Type SUPPORTED
QUERY
public static final Message.Type QUERY
RESULT
public static final Message.Type RESULT
PREPARE
public static final Message.Type PREPARE
EXECUTE
public static final Message.Type EXECUTE
REGISTER
public static final Message.Type REGISTER
EVENT
public static final Message.Type EVENT
AUTH_CHALLENGE
public static final Message.Type AUTH_CHALLENGE
AUTH_RESPONSE
public static final Message.Type AUTH_RESPONSE
AUTH_SUCCESS
public static final Message.Type AUTH_SUCCESS
opcode
public final int opcode
direction
public final Message.Direction direction
codec
public final Message.Codec<?> codec
values
public static Message.Type[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Message.Type c : Message.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Message.Type valueOf(String name)
- 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 name
NullPointerException
- if the argument is null
fromOpcode
public static Message.Type fromOpcode(int opcode,
Message.Direction direction)
Copyright © 2013. All Rights Reserved.