public static interface WaitQueue.Signal extends Condition
Condition.Async, Condition.Sync
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable
Modifier and Type | Method and Description |
---|---|
Awaitable |
await()
Await indefinitely, throwing any interrupt.
|
boolean |
awaitUntil(long nanoTimeDeadline)
Await until the deadline (in nanoTime), throwing any interrupt.
|
void |
cancel()
Should only be called by the owning thread.
|
boolean |
checkAndClear()
atomically: cancels the Signal if !isSet(), or returns true if isSet()
|
boolean |
isCancelled() |
boolean |
isSet() |
isSignalled, newOneTimeCondition, signal, signalAll
await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly
boolean isCancelled()
boolean isSet()
boolean checkAndClear()
void cancel()
Awaitable await() throws java.lang.InterruptedException
boolean awaitUntil(long nanoTimeDeadline) throws java.lang.InterruptedException
awaitUntil
in interface Awaitable
java.lang.InterruptedException
- if interruptedCopyright © 2009- The Apache Software Foundation