@InterfaceStability.Evolving public enum TransactionState extends Enum<TransactionState>
Enum Constant and Description |
---|
COMPLETE_ABORT |
COMPLETE_COMMIT |
EMPTY |
ONGOING |
PREPARE_ABORT |
PREPARE_COMMIT |
PREPARE_EPOCH_FENCE |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static TransactionState |
parse(String name) |
String |
toString() |
static TransactionState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionState ONGOING
public static final TransactionState PREPARE_ABORT
public static final TransactionState PREPARE_COMMIT
public static final TransactionState COMPLETE_ABORT
public static final TransactionState COMPLETE_COMMIT
public static final TransactionState EMPTY
public static final TransactionState PREPARE_EPOCH_FENCE
public static final TransactionState UNKNOWN
public static TransactionState[] values()
for (TransactionState c : TransactionState.values()) System.out.println(c);
public static TransactionState 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 nullpublic String toString()
toString
in class Enum<TransactionState>
public static TransactionState parse(String name)