public class CountLatch extends Object
| Constructor and Description |
|---|
CountLatch(long initial,
long releaseValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
await() |
boolean |
await(long timeout,
TimeUnit unit) |
long |
countDown() |
long |
countUp() |
long |
getCount() |
public void await()
throws InterruptedException
InterruptedExceptionpublic boolean await(long timeout,
TimeUnit unit)
throws InterruptedException
InterruptedExceptionpublic long countUp()
public long countDown()
public long getCount()
Copyright © 2020. All rights reserved.