public abstract static class WaitQueue.AbstractSignal extends java.lang.Object implements WaitQueue.Signal
Constructor and Description |
---|
AbstractSignal() |
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 until)
Wait until signalled, or the provided time is reached, or the thread is interrupted.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, checkAndClear, isCancelled, isSet, isSignalled
public void awaitUninterruptibly()
WaitQueue.Signal
awaitUninterruptibly
in interface WaitQueue.Signal
public void await() throws java.lang.InterruptedException
WaitQueue.Signal
await
in interface WaitQueue.Signal
java.lang.InterruptedException
public boolean awaitUntil(long until) throws java.lang.InterruptedException
WaitQueue.Signal
awaitUntil
in interface WaitQueue.Signal
until
- System.nanoTime() to wait untiljava.lang.InterruptedException
Copyright © 2017 The Apache Software Foundation