com.atomikos.recovery
Enum TxState
java.lang.Object
java.lang.Enum<TxState>
com.atomikos.recovery.TxState
- All Implemented Interfaces:
- Serializable, Comparable<TxState>
public enum TxState
- extends Enum<TxState>
The states for a distributed transaction system.
MARKED_ABORT
public static final TxState MARKED_ABORT
LOCALLY_DONE
public static final TxState LOCALLY_DONE
COMMITTED
public static final TxState COMMITTED
ABORTED
public static final TxState ABORTED
ABANDONED
public static final TxState ABANDONED
TERMINATED
public static final TxState TERMINATED
HEUR_HAZARD
public static final TxState HEUR_HAZARD
HEUR_COMMITTED
public static final TxState HEUR_COMMITTED
HEUR_ABORTED
public static final TxState HEUR_ABORTED
HEUR_MIXED
public static final TxState HEUR_MIXED
COMMITTING
public static final TxState COMMITTING
ABORTING
public static final TxState ABORTING
IN_DOUBT
public static final TxState IN_DOUBT
PREPARING
public static final TxState PREPARING
ACTIVE
public static final TxState ACTIVE
values
public static TxState[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (TxState c : TxState.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TxState valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
isFinalState
public boolean isFinalState()
isFinalStateForOltp
public boolean isFinalStateForOltp()
isRecoverableState
public boolean isRecoverableState()
transitionAllowedTo
public boolean transitionAllowedTo(TxState nextState)
isOneOf
public boolean isOneOf(TxState... state)
label
public String label()
isHeuristic
public boolean isHeuristic()
Copyright © 2016. All Rights Reserved.