Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.atomikos.icatch.system
Class Waiter

    java.lang.Object
      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).

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2012. All Rights Reserved.