Package org.apache.cassandra.net
Class FutureResult<V>
java.lang.Object
org.apache.cassandra.net.FutureDelegate<V>
org.apache.cassandra.net.FutureResult<V>
- All Implemented Interfaces:
io.netty.util.concurrent.Future<V>,Future<V>
An abstraction for yielding a result performed by an asynchronous task,
for whom we may wish to offer cancellation, but no other access to the underlying task
-
Constructor Summary
ConstructorsConstructorDescriptionFutureResult(io.netty.util.concurrent.Future<V> result, io.netty.util.concurrent.Future<?> cancel) -
Method Summary
Methods inherited from class org.apache.cassandra.net.FutureDelegate
addListener, addListeners, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cause, get, get, getNow, isCancellable, isCancelled, isDone, isSuccess, removeListener, removeListeners, sync, syncUninterruptibly
-
Constructor Details
-
FutureResult
public FutureResult(io.netty.util.concurrent.Future<V> result, io.netty.util.concurrent.Future<?> cancel) - Parameters:
result- the Future that will be completed bycancel(boolean)cancel- the Future that is performing the work, and to whom any cancellation attempts will be proxied
-
-
Method Details