public class CountingLatch extends Object
| Constructor and Description |
|---|
CountingLatch() |
CountingLatch(int count) |
public CountingLatch()
public CountingLatch(int count)
public void await()
throws InterruptedException
InterruptedExceptionpublic boolean await(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic void countDown()
public void countUp()
public long getCount()
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.