Class Awaitable.Defaults
java.lang.Object
org.apache.cassandra.utils.concurrent.Awaitable.Defaults
- Enclosing interface:
- Awaitable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic <A extends Awaitable>
AawaitThrowUncheckedOnInterrupt(A await) static booleanawaitThrowUncheckedOnInterrupt(Awaitable await, long time, TimeUnit units) static <A extends Awaitable>
AawaitUninterruptibly(A await) static booleanawaitUninterruptibly(Awaitable await, long time, TimeUnit units) static booleanawaitUntilThrowUncheckedOnInterrupt(Awaitable await, long nanoTimeDeadline) static booleanawaitUntilUninterruptibly(Awaitable await, long nanoTimeDeadline)
-
Constructor Details
-
Defaults
public Defaults()
-
-
Method Details
-
await
- Throws:
InterruptedException
-
awaitThrowUncheckedOnInterrupt
public static boolean awaitThrowUncheckedOnInterrupt(Awaitable await, long time, TimeUnit units) throws UncheckedInterruptedException - Throws:
UncheckedInterruptedException
-
awaitUninterruptibly
-
awaitThrowUncheckedOnInterrupt
public static <A extends Awaitable> A awaitThrowUncheckedOnInterrupt(A await) throws UncheckedInterruptedException - Throws:
UncheckedInterruptedException
-
awaitUntilThrowUncheckedOnInterrupt
public static boolean awaitUntilThrowUncheckedOnInterrupt(Awaitable await, long nanoTimeDeadline) throws UncheckedInterruptedException - Throws:
UncheckedInterruptedException
-
awaitUntilUninterruptibly
-
awaitUninterruptibly
-