public class RunnableCountDownLatch extends Task
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.CountDownLatch |
latch |
| Constructor and Description |
|---|
RunnableCountDownLatch(int count) |
| Modifier and Type | Method and Description |
|---|---|
void |
await() |
boolean |
await(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
countDown() |
long |
getCount() |
void |
run() |
java.lang.String |
toString() |
public void run()
public void await()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic boolean await(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic long getCount()
public void countDown()
public java.lang.String toString()
toString in class java.lang.Object