Class ActionManager

java.lang.Object
com.arjuna.ats.arjuna.coordinator.ActionManager

public class ActionManager extends Object
  • Method Details

    • manager

      public static ActionManager manager()
    • put

      public void put(BasicAction act)
    • get

      public BasicAction get(Uid id)
    • remove

      public void remove(Uid id)
    • getNumberOfInflightTransactions

      public int getNumberOfInflightTransactions()

      This method works out the number of in-flight transactions currently in the system.

      Note: The definition of in-flight (a.k.a. active) transactions can be found in the OMG OTS specification: "[Active is defined as] the state of a transaction when processing is in progress and completion of the transaction has not yet commenced." In addition to the OMG OTS definition, transactions that are marked as abort-only are not considered active. In Arjuna, these considerations are distilled into the following: in-flight transactions are those BasicActions with status() equal to ActionStatus.RUNNING.

      Returns:
      the number of in-flight transactions currently in the system