public enum WriteResult extends Enum<WriteResult>
Session ownership facility write result types.
Enum Constant and Description |
---|
FAILURE_CAS_REJECTED
Indicates that the write operation failed because the expected value for the key before the write did not match the actual value.
|
FAILURE_EXCEPTION
Indicates that the write operation failed because an exception occurred.
|
FAILURE_OTHER
Indicates that the write operation failed due to some reason that was not CAS or exception related.
|
SUCCESS
Indicates that the write operation was successful
|
Modifier and Type | Method and Description |
---|---|
static WriteResult |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WriteResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WriteResult SUCCESS
Indicates that the write operation was successful
public static final WriteResult FAILURE_CAS_REJECTED
Indicates that the write operation failed because the expected value for the key before the write did not match the actual value.
public static final WriteResult FAILURE_EXCEPTION
Indicates that the write operation failed because an exception occurred.
public static final WriteResult FAILURE_OTHER
Indicates that the write operation failed due to some reason that was not CAS or exception related.
public static WriteResult[] values()
for (WriteResult c : WriteResult.values()) System.out.println(c);
public static WriteResult valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null