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>

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 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 by cancel(boolean)
      cancel - the Future that is performing the work, and to whom any cancellation attempts will be proxied
  • Method Details

    • cancel

      public boolean cancel(boolean b)
      Specified by:
      cancel in interface io.netty.util.concurrent.Future<V>
      Specified by:
      cancel in interface Future<V>
      Overrides:
      cancel in class FutureDelegate<V>