Class 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 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 by cancel(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 interface io.netty.util.concurrent.Future<V>
        Specified by:
        cancel in interface java.util.concurrent.Future<V>
        Overrides:
        cancel in class FutureDelegate<V>