public static interface WaitQueue.Signal
Modifier and Type | Method and Description |
---|---|
void |
await()
Wait until signalled, or throw an InterruptedException if interrupted before this happens.
|
void |
awaitUninterruptibly()
Wait, without throwing InterruptedException, until signalled.
|
boolean |
awaitUntil(long nanos)
Wait until signalled, or the provided time is reached, or the thread is interrupted.
|
void |
cancel()
Should only be called by the owning thread.
|
boolean |
checkAndClear()
atomically: cancels the Signal if !isSet(), or returns true if isSignalled()
|
boolean |
isCancelled() |
boolean |
isSet() |
boolean |
isSignalled() |
boolean isSignalled()
boolean isCancelled()
boolean isSet()
boolean checkAndClear()
void cancel()
void awaitUninterruptibly()
void await() throws java.lang.InterruptedException
java.lang.InterruptedException
boolean awaitUntil(long nanos) throws java.lang.InterruptedException
nanos
- System.nanoTime() to wait untiljava.lang.InterruptedException
Copyright © 2015 The Apache Software Foundation