Enum Constant and Description |
---|
Aborted
When a Txn failed to commit.
|
Active
When a Txn is running.
|
Committed
When a Txn successfully committed.
|
Prepared
When the Txn has been checked for conflicts and all resources have been claimed to make sure
that a commit is going to succeed.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAlive()
Checks if the Txn still is active/prepared.
|
static TxnStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TxnStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TxnStatus Active
public static final TxnStatus Prepared
public static final TxnStatus Aborted
public static final TxnStatus Committed
public static TxnStatus[] values()
for (TxnStatus c : TxnStatus.values()) System.out.println(c);
public static TxnStatus 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 nullpublic boolean isAlive()