public static class Condition.Sync extends Awaitable.SyncAwaitable implements Condition
Condition
based on its object monitor.
WARNING: lengthy operations performed while holding the lock may prevent timely notification of waiting threads
that a deadline has passed.Condition.Async, Condition.Sync
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable
Constructor and Description |
---|
Sync() |
Modifier and Type | Method and Description |
---|---|
boolean |
isSignalled()
Return true once signalled.
|
void |
signal()
Signal the condition as met, and wake all waiting threads.
|
await, awaitUntil, waitUntil
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.SyncAwaitable
isSignalled
in interface Condition
isSignalled
in class Awaitable.SyncAwaitable
Copyright © 2009- The Apache Software Foundation