public enum CASResponse extends java.lang.Enum<CASResponse>
Enum Constant and Description |
---|
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).
|
OBSERVE_ERROR_IN_ARGS
Status indicating there was an error in specifying the arguments for
the Observe.
|
OBSERVE_MODIFIED
Status indicating the CAS operation succeeded but the value was
subsequently modified during Observe.
|
OBSERVE_TIMEOUT
Status indicating there was a Timeout in the Observe operation.
|
OK
Status indicating that the CAS was successful and the new value is stored
in the cache.
|
Modifier and Type | Method and Description |
---|---|
static CASResponse |
valueOf(java.lang.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.
|
public static final CASResponse OK
public static final CASResponse NOT_FOUND
public static final CASResponse EXISTS
public static final CASResponse OBSERVE_ERROR_IN_ARGS
public static final CASResponse OBSERVE_MODIFIED
public static final CASResponse OBSERVE_TIMEOUT
public static CASResponse[] values()
for (CASResponse c : CASResponse.values()) System.out.println(c);
public static CASResponse valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.