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>
,java.util.concurrent.Future<V>
public class FutureResult<V> extends FutureDelegate<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
Constructors Constructor Description FutureResult(io.netty.util.concurrent.Future<V> result, io.netty.util.concurrent.Future<?> cancel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancel(boolean b)
-
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 Detail
-
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 Detail
-
cancel
public boolean cancel(boolean b)
- Specified by:
cancel
in interfaceio.netty.util.concurrent.Future<V>
- Specified by:
cancel
in interfacejava.util.concurrent.Future<V>
- Overrides:
cancel
in classFutureDelegate<V>
-
-