Class Awaitable.AbstractAwaitable
java.lang.Object
org.apache.cassandra.utils.concurrent.Awaitable.AbstractAwaitable
- All Implemented Interfaces:
Awaitable
- Direct Known Subclasses:
Awaitable.AsyncAwaitable,Awaitable.SyncAwaitable,WaitQueue.Standard.AbstractSignal
- Enclosing interface:
- Awaitable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.concurrent.Awaitable
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanawaitThrowUncheckedOnInterrupt(long time, TimeUnit units) booleanawaitUninterruptibly(long time, TimeUnit units) booleanawaitUntilThrowUncheckedOnInterrupt(long nanoTimeDeadline) booleanawaitUntilUninterruptibly(long nanoTimeDeadline) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.cassandra.utils.concurrent.Awaitable
await, awaitUntil
-
Constructor Details
-
AbstractAwaitable
protected AbstractAwaitable()
-
-
Method Details
-
await
- Specified by:
awaitin interfaceAwaitable- Returns:
- true if we were signalled, false if the timeout elapses
- Throws:
InterruptedException- if interrupted
-
awaitThrowUncheckedOnInterrupt
public boolean awaitThrowUncheckedOnInterrupt(long time, TimeUnit units) throws UncheckedInterruptedException - Specified by:
awaitThrowUncheckedOnInterruptin interfaceAwaitable- Returns:
- true if we were signalled, false if the timeout elapses
- Throws:
UncheckedInterruptedException- if interrupted
-
awaitUninterruptibly
- Specified by:
awaitUninterruptiblyin interfaceAwaitable- Returns:
- true if we were signalled, false if the timeout elapses
-
awaitThrowUncheckedOnInterrupt
- Specified by:
awaitThrowUncheckedOnInterruptin interfaceAwaitable- Throws:
UncheckedInterruptedException- if interrupted
-
awaitUntilThrowUncheckedOnInterrupt
public boolean awaitUntilThrowUncheckedOnInterrupt(long nanoTimeDeadline) throws UncheckedInterruptedException - Specified by:
awaitUntilThrowUncheckedOnInterruptin interfaceAwaitable- Returns:
- true if we were signalled, false if the deadline elapsed
- Throws:
UncheckedInterruptedException- if interrupted
-
awaitUntilUninterruptibly
public boolean awaitUntilUninterruptibly(long nanoTimeDeadline) - Specified by:
awaitUntilUninterruptiblyin interfaceAwaitable- Returns:
- true if we were signalled, false if the deadline elapsed
-
awaitUninterruptibly
- Specified by:
awaitUninterruptiblyin interfaceAwaitable
-