net.rubyeye.xmemcached.command
Enum CommandType

java.lang.Object
  extended by java.lang.Enum<CommandType>
      extended by net.rubyeye.xmemcached.command.CommandType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CommandType>

public enum CommandType
extends java.lang.Enum<CommandType>

Command Type for memcached protocol.

Author:
dennis

Enum Constant Summary
ADD
           
APPEND
           
AUTH_LIST
           
AUTH_START
           
AUTH_STEP
           
CAS
           
DECR
           
DELETE
           
EXCEPTION
           
FLUSH_ALL
           
GET_HIT
           
GET_MANY
           
GET_MISS
           
GET_ONE
           
GETS_MANY
           
GETS_ONE
           
INCR
           
NOOP
           
PREPEND
           
QUIT
           
REPLACE
           
SET
           
STATS
           
VERBOSITY
           
VERSION
           
 
Method Summary
static CommandType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CommandType[] 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

NOOP

public static final CommandType NOOP

STATS

public static final CommandType STATS

FLUSH_ALL

public static final CommandType FLUSH_ALL

GET_ONE

public static final CommandType GET_ONE

GET_MANY

public static final CommandType GET_MANY

SET

public static final CommandType SET

REPLACE

public static final CommandType REPLACE

ADD

public static final CommandType ADD

EXCEPTION

public static final CommandType EXCEPTION

DELETE

public static final CommandType DELETE

VERSION

public static final CommandType VERSION

QUIT

public static final CommandType QUIT

INCR

public static final CommandType INCR

DECR

public static final CommandType DECR

GETS_ONE

public static final CommandType GETS_ONE

GETS_MANY

public static final CommandType GETS_MANY

CAS

public static final CommandType CAS

APPEND

public static final CommandType APPEND

PREPEND

public static final CommandType PREPEND

GET_HIT

public static final CommandType GET_HIT

GET_MISS

public static final CommandType GET_MISS

VERBOSITY

public static final CommandType VERBOSITY

AUTH_LIST

public static final CommandType AUTH_LIST

AUTH_START

public static final CommandType AUTH_START

AUTH_STEP

public static final CommandType AUTH_STEP
Method Detail

values

public static CommandType[] 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 (CommandType c : CommandType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static CommandType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2011. All Rights Reserved.