public static class CountDownLatch.Async extends Awaitable.AsyncAwaitable implements CountDownLatch
CountDownLatch.Async, CountDownLatch.Sync
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable
Modifier | Constructor and Description |
---|---|
protected |
Async(int count) |
Modifier and Type | Method and Description |
---|---|
int |
count() |
void |
decrement()
Count down by 1, signalling waiters if we have reached zero
|
protected boolean |
isSignalled()
Return true once signalled.
|
await, awaitUntil, signal
await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newCountDownLatch
await, await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntil, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly
public void decrement()
CountDownLatch
decrement
in interface CountDownLatch
public int count()
count
in interface CountDownLatch
protected boolean isSignalled()
Awaitable.AsyncAwaitable
isSignalled
in class Awaitable.AsyncAwaitable
Copyright © 2009-2022 The Apache Software Foundation