org.apache.openejb.util
Class CountingLatch

java.lang.Object
  extended by org.apache.openejb.util.CountingLatch

public class CountingLatch
extends java.lang.Object

Version:
$Rev$ $Date$

Constructor Summary
CountingLatch()
           
CountingLatch(int count)
           
 
Method Summary
 void await()
           
 boolean await(long timeout, java.util.concurrent.TimeUnit unit)
           
 void countDown()
           
 void countUp()
           
 long getCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountingLatch

public CountingLatch()

CountingLatch

public CountingLatch(int count)
Method Detail

await

public void await()
           throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

await

public boolean await(long timeout,
                     java.util.concurrent.TimeUnit unit)
              throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

countDown

public void countDown()

countUp

public void countUp()

getCount

public long getCount()


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.