Enum Class Status

java.lang.Object
java.lang.Enum<Status>
com.tangosol.coherence.transaction.Status
All Implemented Interfaces:
Serializable, Comparable<Status>, Constable

public enum Status extends Enum<Status>
Transaction status.
Since:
Coherence 3.6
Author:
js 2009.03.30
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The transaction is in the active state.
    The transaction has been committed.
    The transaction is in the process of being committed.
    The transaction has been prepared by an external coordinator and is now in-doubt.
    The transaction is in the process of being prepared.
    The transaction has been marked for rollback.
    The transaction has been rolled back.
    The transaction is in the process of being rolled back.
    The transaction is in an unknown state due to an error.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Determine if the status is a transient completing status.
    boolean
    Determine if the status is a terminal status.
    Return a human-readable description for this Status.
    static Status
    Returns the enum constant of this class with the specified name.
    static Status[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ACTIVE

      public static final Status ACTIVE
      The transaction is in the active state. A transaction is in this state after it is started and remains in this state until the completion protocol starts or until it is marked rollback only.
    • COMMITTING

      public static final Status COMMITTING
      The transaction is in the process of being committed.
    • ROLLINGBACK

      public static final Status ROLLINGBACK
      The transaction is in the process of being rolled back.
    • PREPARING

      public static final Status PREPARING
      The transaction is in the process of being prepared.
    • COMMITTED

      public static final Status COMMITTED
      The transaction has been committed.
    • ROLLEDBACK

      public static final Status ROLLEDBACK
      The transaction has been rolled back.
    • PREPARED

      public static final Status PREPARED
      The transaction has been prepared by an external coordinator and is now in-doubt.
    • RB_ONLY

      public static final Status RB_ONLY
      The transaction has been marked for rollback.
    • UNKNOWN

      public static final Status UNKNOWN
      The transaction is in an unknown state due to an error.
  • Method Details

    • values

      public static Status[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Status valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • isTerminal

      public boolean isTerminal()
      Determine if the status is a terminal status.
      Returns:
      true if status is terminal, false otherwise
    • isCompleting

      public boolean isCompleting()
      Determine if the status is a transient completing status.
      Returns:
      true if the status is a transient completing status, false otherwise
    • toString

      public String toString()
      Return a human-readable description for this Status.
      Overrides:
      toString in class Enum<Status>
      Returns:
      a String description of the Status