public class AbortableCountDownLatch extends CountDownLatch
AbortableCountDownLatch.AbortedException| Modifier and Type | Class and Description |
|---|---|
static class |
AbortableCountDownLatch.AbortedException |
| Constructor and Description |
|---|
AbortableCountDownLatch(int count) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(String message,
Throwable throwable)
Unblocks all threads waiting on this latch and cause them to receive an AbortedException.
|
void |
await() |
boolean |
await(long timeout,
TimeUnit unit) |
long |
getRemainingLatchesCount() |
countDown, getCount, toStringpublic void abort(String message, Throwable throwable)
public boolean await(long timeout,
TimeUnit unit)
throws InterruptedException
await in class CountDownLatchInterruptedExceptionpublic void await()
throws InterruptedException
await in class CountDownLatchInterruptedExceptionpublic long getRemainingLatchesCount()
Copyright © 2021 Kurento. All rights reserved.