public abstract static class Awaitable.AsyncAwaitable extends Awaitable.AbstractAwaitable
Awaitable
.
If your state is minimal, or can be updated concurrently, extend this class.Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable
Modifier | Constructor and Description |
---|---|
protected |
AsyncAwaitable() |
Modifier and Type | Method and Description |
---|---|
Awaitable |
await()
|
boolean |
awaitUntil(long nanoTimeDeadline)
|
protected abstract boolean |
isSignalled()
Return true once signalled.
|
protected void |
signal()
Signal any waiting threads;
isSignalled() must return true before this method is invoked. |
await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly
public Awaitable await() throws java.lang.InterruptedException
java.lang.InterruptedException
- if interruptedpublic boolean awaitUntil(long nanoTimeDeadline) throws java.lang.InterruptedException
java.lang.InterruptedException
- if interruptedprotected void signal()
isSignalled()
must return true
before this method is invoked.protected abstract boolean isSignalled()
Copyright © 2009- The Apache Software Foundation