public static class Condition.Async extends Awaitable.AsyncAwaitable implements Condition
Condition
. Typically lower overhead than Condition.Sync
.Condition.Async, Condition.Sync
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable
Modifier | Constructor and Description |
---|---|
protected |
Async() |
Modifier and Type | Method and Description |
---|---|
boolean |
isSignalled()
Return true once signalled.
|
void |
signal()
Signal any waiting threads;
Awaitable.AsyncAwaitable.isSignalled() must return true before this method is invoked. |
await, awaitUntil
await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newOneTimeCondition, signalAll
await, await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntil, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly
public boolean isSignalled()
Awaitable.AsyncAwaitable
isSignalled
in interface Condition
isSignalled
in class Awaitable.AsyncAwaitable
public void signal()
Awaitable.AsyncAwaitable
Awaitable.AsyncAwaitable.isSignalled()
must return true
before this method is invoked.signal
in interface Condition
signal
in class Awaitable.AsyncAwaitable
Copyright © 2009- The Apache Software Foundation