Package org.apache.cassandra.concurrent
Class FutureTaskWithResources<V>
java.lang.Object
org.apache.cassandra.utils.concurrent.AbstractFuture<V>
org.apache.cassandra.utils.concurrent.AsyncFuture<V>
org.apache.cassandra.concurrent.FutureTask<V>
org.apache.cassandra.concurrent.FutureTaskWithResources<V>
- All Implemented Interfaces:
com.google.common.util.concurrent.ListenableFuture<V>,io.netty.util.concurrent.Future<V>,Runnable,Future<V>,RunnableFuture<V>,Awaitable,Future<V>,RunnableFuture<V>
A FutureTask that utilises Cassandra's
AsyncFuture, making it compatible with ExecutorPlus.
Encapsulates a WithResources; the call will instantiate the resources before executing,
and close them after executing but before completing the task.
Propagates exceptions to the uncaught exception handler.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.cassandra.utils.concurrent.Awaitable
Awaitable.AbstractAwaitable, Awaitable.AsyncAwaitable, Awaitable.Defaults, Awaitable.SyncAwaitable -
Field Summary
Fields inherited from class org.apache.cassandra.utils.concurrent.AbstractFuture
CANCELLED, UNCANCELLABLE, UNSET -
Constructor Summary
ConstructorsConstructorDescriptionFutureTaskWithResources(WithResources withResources, Runnable task) FutureTaskWithResources(WithResources withResources, Callable<V> call) -
Method Summary
Methods inherited from class org.apache.cassandra.concurrent.FutureTask
callable, callable, callable, callable, description, run, tryFailureMethods inherited from class org.apache.cassandra.utils.concurrent.AsyncFuture
await, awaitUntil, flatMap, mapMethods inherited from class org.apache.cassandra.utils.concurrent.AbstractFuture
addCallback, addCallback, addCallback, addCallback, addCallback, addCallback, addListener, addListener, addListener, addListeners, await, awaitThrowUncheckedOnInterrupt, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptibly, cancel, cause, flatMap, get, get, getNow, getWhenDone, isCancellable, isCancelled, isDone, isSuccess, isUncancellable, map, map, notifyExecutor, removeListener, removeListeners, setUncancellable, setUncancellableExclusive, toString, trySuccessMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cassandra.utils.concurrent.Awaitable
await, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUntil, awaitUntilThrowUncheckedOnInterrupt, awaitUntilUninterruptiblyMethods inherited from interface io.netty.util.concurrent.Future
await, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isSuccessMethods inherited from interface java.util.concurrent.Future
get, get, isCancelled, isDoneMethods inherited from interface org.apache.cassandra.utils.concurrent.Future
addCallback, addCallback, addCallback, addCallback, addCallback, addCallback, addListener, addListener, addListener, addListeners, await, await, awaitThrowUncheckedOnInterrupt, awaitUninterruptibly, awaitUninterruptibly, flatMap, flatMap, map, map, notifyExecutor, removeListener, removeListeners, rethrowIfFailed, sync, syncThrowUncheckedOnInterrupt, syncUninterruptibly
-
Constructor Details
-
FutureTaskWithResources
-
FutureTaskWithResources
-