- java.lang.Object
-
- io.netty5.channel.ChannelFutureListeners
-
public final class ChannelFutureListeners extends Object
FutureContextListener
listeners that take a context, and listens to the result of aFuture
. The result of the asynchronousChannelOutboundInvoker
I/O operation is notified once this listener is added by callingFuture.addListener(Object, FutureContextListener)
with theChannelOutboundInvoker
/Channel
as context.
-
-
Field Summary
Fields Modifier and Type Field Description static FutureContextListener<ChannelOutboundInvoker,Object>
CLOSE
AFutureContextListener
that closes theChannelOutboundInvoker
which is associated with the specifiedFuture
.static FutureContextListener<ChannelOutboundInvoker,Object>
CLOSE_ON_FAILURE
AFutureContextListener
that closes theChannelOutboundInvoker
when 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
AFutureContextListener
that closes theChannelOutboundInvoker
which is associated with the specifiedFuture
.
-
CLOSE_ON_FAILURE
public static final FutureContextListener<ChannelOutboundInvoker,Object> CLOSE_ON_FAILURE
AFutureContextListener
that closes theChannelOutboundInvoker
when 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
AFutureContextListener
that forwards theThrowable
of theFuture
into theChannelPipeline
. This mimics the old behavior of Netty 3.
-
-