public interface Condition extends Awaitable
Awaitable
for explicit external signals.Modifier and Type | Interface and Description |
---|---|
static class |
Condition.Async
An asynchronous
Condition . |
static class |
Condition.Sync
A
Condition based on its object monitor. |
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable
Modifier and Type | Method and Description |
---|---|
boolean |
isSignalled()
Returns true once signalled.
|
static Condition |
newOneTimeCondition()
Factory method used to capture and redirect instantiations for simulation
|
void |
signal()
Signal the condition as met, and wake all waiting threads.
|
default void |
signalAll()
Signal the condition as met, and wake all waiting threads.
|
await, await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntil, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly
boolean isSignalled()
void signal()
default void signalAll()
static Condition newOneTimeCondition()
Copyright © 2009- The Apache Software Foundation