public final class UninterruptibleCountDownLatch extends CountDownLatch
| Constructor and Description |
|---|
UninterruptibleCountDownLatch(int count) |
| Modifier and Type | Method and Description |
|---|---|
void |
awaitUninterruptibly()
Behaves the same way as
CountDownLatch.await() except it never throws InterruptedException. |
boolean |
awaitUninterruptibly(long timeout,
TimeUnit unit)
Behaves the same way as
CountDownLatch.await(long,TimeUnit) except it never throws InterruptedException. |
public void awaitUninterruptibly()
CountDownLatch.await() except it never throws InterruptedException.
Thread interrupt status will be preserved if thread have been interrupted inside this method.public boolean awaitUninterruptibly(long timeout,
TimeUnit unit)
CountDownLatch.await(long,TimeUnit) except it never throws InterruptedException.
Thread interrupt status will be preserved if thread have been interrupted inside this method.timeout - the maximum time to waitunit - the time unit of the timeout argumenttrue if the count reached zero and false
if the waiting time elapsed before the count reached zeroCopyright © 2021 JBoss by Red Hat. All rights reserved.