public class CountingLatch
extends java.lang.Object
Constructor and Description |
---|
CountingLatch() |
CountingLatch(int count) |
Modifier and Type | Method and Description |
---|---|
void |
await() |
boolean |
await(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
countDown() |
void |
countUp() |
long |
getCount() |
public CountingLatch()
public CountingLatch(int count)
public void await() throws java.lang.InterruptedException
java.lang.InterruptedException
public boolean await(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public void countDown()
public void countUp()
public long getCount()