org.openspaces.memcached.protocol
Enum Op
java.lang.Object
java.lang.Enum<Op>
org.openspaces.memcached.protocol.Op
- All Implemented Interfaces:
- Serializable, Comparable<Op>
public enum Op
- extends Enum<Op>
Method Summary |
static Op |
findOp(byte[] cmd)
|
static Op |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Op[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
GET
public static final Op GET
GETS
public static final Op GETS
APPEND
public static final Op APPEND
PREPEND
public static final Op PREPEND
DELETE
public static final Op DELETE
DECR
public static final Op DECR
INCR
public static final Op INCR
REPLACE
public static final Op REPLACE
ADD
public static final Op ADD
SET
public static final Op SET
CAS
public static final Op CAS
STATS
public static final Op STATS
VERSION
public static final Op VERSION
QUIT
public static final Op QUIT
FLUSH_ALL
public static final Op FLUSH_ALL
VERBOSITY
public static final Op VERBOSITY
values
public static Op[] 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 (Op c : Op.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Op 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
findOp
public static Op findOp(byte[] cmd)
Copyright © GigaSpaces.