public abstract static class Awaitable.AbstractAwaitable extends java.lang.Object implements Awaitable
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable
Modifier | Constructor and Description |
---|---|
protected |
AbstractAwaitable() |
Modifier and Type | Method and Description |
---|---|
boolean |
await(long time,
java.util.concurrent.TimeUnit unit)
|
Awaitable |
awaitThrowUncheckedOnInterrupt()
|
boolean |
awaitThrowUncheckedOnInterrupt(long time,
java.util.concurrent.TimeUnit units)
|
Awaitable |
awaitUninterruptibly()
|
boolean |
awaitUninterruptibly(long time,
java.util.concurrent.TimeUnit units)
|
boolean |
awaitUntilThrowUncheckedOnInterrupt(long nanoTimeDeadline)
|
boolean |
awaitUntilUninterruptibly(long nanoTimeDeadline)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
await, awaitUntil
public boolean await(long time, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
public boolean awaitThrowUncheckedOnInterrupt(long time, java.util.concurrent.TimeUnit units) throws UncheckedInterruptedException
awaitThrowUncheckedOnInterrupt
in interface Awaitable
UncheckedInterruptedException
- if interruptedpublic boolean awaitUninterruptibly(long time, java.util.concurrent.TimeUnit units)
awaitUninterruptibly
in interface Awaitable
public Awaitable awaitThrowUncheckedOnInterrupt() throws UncheckedInterruptedException
awaitThrowUncheckedOnInterrupt
in interface Awaitable
UncheckedInterruptedException
- if interruptedpublic boolean awaitUntilThrowUncheckedOnInterrupt(long nanoTimeDeadline) throws UncheckedInterruptedException
awaitUntilThrowUncheckedOnInterrupt
in interface Awaitable
UncheckedInterruptedException
- if interruptedpublic boolean awaitUntilUninterruptibly(long nanoTimeDeadline)
awaitUntilUninterruptibly
in interface Awaitable
public Awaitable awaitUninterruptibly()
awaitUninterruptibly
in interface Awaitable
Copyright © 2009-2022 The Apache Software Foundation