|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TxnStatus>
org.multiverse.api.TxnStatus
public enum TxnStatus
An enumeration of all possible states a Txn can have.
| Enum Constant Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
boolean |
isAlive()
Checks if the Txn still is active/prepared. |
static TxnStatus |
valueOf(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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final TxnStatus Active
public static final TxnStatus Prepared
public static final TxnStatus Aborted
public static final TxnStatus Committed
| Method Detail |
|---|
public static TxnStatus[] values()
for (TxnStatus c : TxnStatus.values()) System.out.println(c);
public static TxnStatus valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean isAlive()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||