public enum ResponseCode extends java.lang.Enum<ResponseCode>
Enum Constant and Description |
---|
ABORT_FAILURE
An abort failed either because of IO or other failures or because the
transaction was already committed.
|
COMMIT_FAILURE
A commit failed either because of IO or other failures or because the
transaction was already aborted.
|
IOEXCEPTION |
LOCK_FAILURE
Indicates that a lock acquisition attempt failed.
|
TXOP_FAILURE
Indicates that an individual transaction operation failed.
|
UNLOCK_FAILURE
Indicates that a lock release attempt failed.
|
Modifier and Type | Method and Description |
---|---|
static ResponseCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ResponseCode LOCK_FAILURE
public static final ResponseCode UNLOCK_FAILURE
public static final ResponseCode IOEXCEPTION
public static final ResponseCode TXOP_FAILURE
public static final ResponseCode COMMIT_FAILURE
public static final ResponseCode ABORT_FAILURE
public static ResponseCode[] values()
for (ResponseCode c : ResponseCode.values()) System.out.println(c);
public static ResponseCode 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 null