Class ChannelFutureListeners


  • public final class ChannelFutureListeners
    extends Object
    FutureContextListener listeners that take a context, and listens to the result of a Future. The result of the asynchronous ChannelOutboundInvoker I/O operation is notified once this listener is added by calling Future.addListener(Object, FutureContextListener) with the ChannelOutboundInvoker / Channel as context.
    • Field Detail

      • CLOSE_ON_FAILURE

        public static final io.netty5.util.concurrent.FutureContextListener<ChannelOutboundInvoker,​Object> CLOSE_ON_FAILURE
        A FutureContextListener that closes the ChannelOutboundInvoker when the operation ended up with a failure or cancellation rather than a success.
      • FIRE_EXCEPTION_ON_FAILURE

        public static final io.netty5.util.concurrent.FutureContextListener<Channel,​Object> FIRE_EXCEPTION_ON_FAILURE
        A FutureContextListener that forwards the Throwable of the Future into the ChannelPipeline. This mimics the old behavior of Netty 3.