Class CheckedAction

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

public class CheckedAction extends Object
If an action attempts to terminate with threads still active we call an instance of this class to determine what to do. The default simply prints a warning and relies upon the outstanding threads to find out the state of the action later. However, this can be overridden, e.g., the thread attempting to terminate the action may be made to block. WARNING: watch out for deadlock!
Since:
JTS 1.2.4.
Version:
$Id: CheckedAction.java 2342 2006-03-30 13:06:17Z $
Author:
Mark Little (mark@arjuna.com)
  • Constructor Details

    • CheckedAction

      public CheckedAction()
  • Method Details

    • check

      public void check(boolean isCommit, Uid actUid, Hashtable list)
      Called during transaction termination if more than one thread is associated with the transaction. The supplied information should be sufficient for application specific implementations to do useful work (such as synchronizing on the threads). The default implementation simply prints a warning.