public static final class CountDownLatch.Sync extends Awaitable.SyncAwaitable implements CountDownLatch
CountDownLatch.Async, CountDownLatch.Sync
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable
Constructor and Description |
---|
Sync(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()
not synchronized as only intended for internal usage by externally synchronized methods
|
await, awaitUntil, waitUntil
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()
isSignalled
in class Awaitable.SyncAwaitable
Copyright © 2009-2022 The Apache Software Foundation