This topic has not yet been written. The content below is from the topic description.
Example 3.1. Class CheckedAction public class CheckedAction { public synchronized void check (boolean isCommit, Uid actUid, BasicList list); }; When a thread attempts to terminate the transaction and there are active threads within it, the system will invoke the check method on the transaction’s CheckedAction object. The parameters to the check method are: isCommit Indicates whether the transaction is in the process of committing or rolling back. actUid The transaction identifier. list A list of all of the threads currently marked as active within this transaction. When check returns, the transaction termination will continue. Obviously the state of the transaction at this point may be different from that when check was called, e.g., the transaction may subsequently have been committed. A CheckedAction instance is created for each transaction. As mentioned above, the default implementation simply issues warnings in the presence of multiple threads active on the transaction when it is terminated. However, a different instance can be provided to each transaction in one of the following ways: