com.datastax.cassandra.transport
Enum Message.Type

java.lang.Object
  extended by java.lang.Enum<Message.Type>
      extended by 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>


Enum Constant Summary
AUTH_CHALLENGE
           
AUTH_RESPONSE
           
AUTH_SUCCESS
           
AUTHENTICATE
           
CREDENTIALS
           
ERROR
           
EVENT
           
EXECUTE
           
OPTIONS
           
PREPARE
           
QUERY
           
READY
           
REGISTER
           
RESULT
           
STARTUP
           
SUPPORTED
           
 
Field Summary
 Message.Codec<?> codec
           
 Message.Direction direction
           
 int opcode
           
 
Method Summary
static Message.Type fromOpcode(int opcode, Message.Direction direction)
           
static Message.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Message.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Field Detail

opcode

public final int opcode

direction

public final Message.Direction direction

codec

public final Message.Codec<?> codec
Method Detail

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.