- java.lang.Object
-
- io.netty5.channel.ChannelFutureListeners
-
public final class ChannelFutureListeners extends Object
FutureContextListenerlisteners that take a context, and listens to the result of aFuture. The result of the asynchronousChannelOutboundInvokerI/O operation is notified once this listener is added by callingFuture.addListener(Object, FutureContextListener)with theChannelOutboundInvoker/Channelas context.
-
-
Field Summary
Fields Modifier and Type Field Description static FutureContextListener<ChannelOutboundInvoker,Object>CLOSEAFutureContextListenerthat closes theChannelOutboundInvokerwhich is associated with the specifiedFuture.static FutureContextListener<ChannelOutboundInvoker,Object>CLOSE_ON_FAILUREAFutureContextListenerthat closes theChannelOutboundInvokerwhen the operation ended up with a failure or cancellation rather than a success.static FutureContextListener<Channel,Object>FIRE_EXCEPTION_ON_FAILURE
-
-
-
Field Detail
-
CLOSE
public static final FutureContextListener<ChannelOutboundInvoker,Object> CLOSE
AFutureContextListenerthat closes theChannelOutboundInvokerwhich is associated with the specifiedFuture.
-
CLOSE_ON_FAILURE
public static final FutureContextListener<ChannelOutboundInvoker,Object> CLOSE_ON_FAILURE
AFutureContextListenerthat closes theChannelOutboundInvokerwhen the operation ended up with a failure or cancellation rather than a success.
-
FIRE_EXCEPTION_ON_FAILURE
public static final FutureContextListener<Channel,Object> FIRE_EXCEPTION_ON_FAILURE
AFutureContextListenerthat forwards theThrowableof theFutureinto theChannelPipeline. This mimics the old behavior of Netty 3.
-
-