Class ActionManager
java.lang.Object
com.arjuna.ats.arjuna.coordinator.ActionManager
-
Method Summary
Modifier and TypeMethodDescriptionintThis method works out the number of in-flight transactions currently in the system.static ActionManagermanager()voidput(BasicAction act) void
-
Method Details
-
manager
-
put
-
get
-
remove
-
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
-