Package net.spy.memcached.ops
Enum StatusCode
- java.lang.Object
-
- java.lang.Enum<StatusCode>
-
- net.spy.memcached.ops.StatusCode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<StatusCode>
public enum StatusCode extends java.lang.Enum<StatusCode>
Represents status and error codes from the binary protocol.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELLED
ERR_2BIG
ERR_BUSY
ERR_CLIENT
ERR_DELTA_BADVAL
ERR_EXISTS
ERR_INTERNAL
ERR_INVAL
ERR_NO_MEM
ERR_NOT_FOUND
ERR_NOT_MY_VBUCKET
ERR_NOT_STORED
ERR_NOT_SUPPORTED
ERR_TEMP_FAIL
ERR_UNKNOWN_COMMAND
INTERRUPTED
SUCCESS
TIMEDOUT
-
Constructor Summary
Constructors Modifier Constructor Description private
StatusCode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StatusCode
fromAsciiLine(java.lang.String line)
static StatusCode
fromBinaryCode(int code)
static StatusCode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StatusCode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final StatusCode SUCCESS
-
ERR_NOT_FOUND
public static final StatusCode ERR_NOT_FOUND
-
ERR_EXISTS
public static final StatusCode ERR_EXISTS
-
ERR_2BIG
public static final StatusCode ERR_2BIG
-
ERR_INVAL
public static final StatusCode ERR_INVAL
-
ERR_NOT_STORED
public static final StatusCode ERR_NOT_STORED
-
ERR_DELTA_BADVAL
public static final StatusCode ERR_DELTA_BADVAL
-
ERR_NOT_MY_VBUCKET
public static final StatusCode ERR_NOT_MY_VBUCKET
-
ERR_UNKNOWN_COMMAND
public static final StatusCode ERR_UNKNOWN_COMMAND
-
ERR_NO_MEM
public static final StatusCode ERR_NO_MEM
-
ERR_NOT_SUPPORTED
public static final StatusCode ERR_NOT_SUPPORTED
-
ERR_INTERNAL
public static final StatusCode ERR_INTERNAL
-
ERR_BUSY
public static final StatusCode ERR_BUSY
-
ERR_TEMP_FAIL
public static final StatusCode ERR_TEMP_FAIL
-
CANCELLED
public static final StatusCode CANCELLED
-
INTERRUPTED
public static final StatusCode INTERRUPTED
-
TIMEDOUT
public static final StatusCode TIMEDOUT
-
ERR_CLIENT
public static final StatusCode ERR_CLIENT
-
-
Method Detail
-
values
public static StatusCode[] 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 (StatusCode c : StatusCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StatusCode 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 namejava.lang.NullPointerException
- if the argument is null
-
fromBinaryCode
public static StatusCode fromBinaryCode(int code)
-
fromAsciiLine
public static StatusCode fromAsciiLine(java.lang.String line)
-
-