com.atomikos.recovery
Enum TxState

java.lang.Object
  extended by java.lang.Enum<TxState>
      extended by com.atomikos.recovery.TxState
All Implemented Interfaces:
Serializable, Comparable<TxState>

public enum TxState
extends Enum<TxState>

The states for a distributed transaction system.


Enum Constant Summary
ABANDONED
           
ABORTED
           
ABORTING
           
ACTIVE
           
COMMITTED
           
COMMITTING
           
HEUR_ABORTED
           
HEUR_COMMITTED
           
HEUR_HAZARD
           
HEUR_MIXED
           
IN_DOUBT
           
LOCALLY_DONE
           
MARKED_ABORT
           
PREPARING
           
TERMINATED
           
 
Method Summary
 boolean isFinalState()
           
 boolean isFinalStateForOltp()
           
 boolean isHeuristic()
           
 boolean isOneOf(TxState... state)
           
 boolean isRecoverableState()
           
 String label()
           
 boolean transitionAllowedTo(TxState nextState)
           
static TxState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TxState[] 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

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
Method Detail

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.