public final class CountDownLatchX extends CountDownLatch
Constructor and Description |
---|
CountDownLatchX(int count) |
Modifier and Type | Method and Description |
---|---|
static boolean |
tryAwait(CountDownLatch latch,
long timeout,
TimeUnit unit)
Same as await(),
but returns normally if interrupted.
|
boolean |
tryAwait(long timeout,
TimeUnit unit)
Same as join(), but returns normally if interrupted.
|
public CountDownLatchX(int count)
public boolean tryAwait(long timeout, TimeUnit unit)
public static boolean tryAwait(CountDownLatch latch, long timeout, TimeUnit unit)