|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<CASResponse> net.spy.memcached.CASResponse
public enum CASResponse
Response codes for a CAS operation.
Enum Constant Summary | |
---|---|
EXISTS
Status indicating the value was found in the cache, but exists with a different CAS value than expected. |
|
NOT_FOUND
Status indicating the value was not found in the cache (an add operation may be issued to store the value). |
|
OK
Status indicating that the CAS was successful and the new value is stored in the cache. |
Method Summary | |
---|---|
static CASResponse |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static CASResponse[] |
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 |
---|
public static final CASResponse OK
public static final CASResponse NOT_FOUND
public static final CASResponse EXISTS
Method Detail |
---|
public static CASResponse[] values()
for (CASResponse c : CASResponse.values()) System.out.println(c);
public static CASResponse valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |