com.atomikos.icatch.system
Class Waiter

java.lang.Object
  extended by com.atomikos.icatch.system.Waiter

public class Waiter
extends Object

A class for synchronizing on subtransaction threads. You need this functionality because a subtransaction thread has to finish before the creator transaction is done. A new waiter instance can be used to create SubTxThread instances.


Constructor Summary
Waiter()
           
 
Method Summary
 int getAbortCount()
          After waitForAll has returned, this method gives the number of threads that exited with an exception.
 void waitForAll()
          Waits until all active threads for this object are done.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Waiter

public Waiter()
Method Detail

waitForAll

public void waitForAll()
Waits until all active threads for this object are done.


getAbortCount

public int getAbortCount()
After waitForAll has returned, this method gives the number of threads that exited with an exception. Subtransactions of failed threads have been rolled back, and subtransactions of succeeded threads have been subtransaction-committed (and included in the 2PC set of the parent transaction).



Copyright © 2011. All Rights Reserved.