Package io.netty.channel
Interface ChannelFutureListener
- 
- All Superinterfaces:
- java.util.EventListener,- GenericFutureListener<ChannelFuture>
 - All Known Implementing Classes:
- ChannelPromiseAggregator,- ChannelPromiseNotifier,- DefaultHttp2ConnectionEncoder.FlowControlledBase,- DelegatingChannelPromiseNotifier
 
 public interface ChannelFutureListener extends GenericFutureListener<ChannelFuture> Listens to the result of aChannelFuture. The result of the asynchronousChannelI/O operation is notified once this listener is added by callingChannelFuture.addListener(GenericFutureListener).Return the control to the caller quicklyGenericFutureListener.operationComplete(Future)is directly called by an I/O thread. Therefore, performing a time consuming task or a blocking operation in the handler method can cause an unexpected pause during I/O. If you need to perform a blocking operation on I/O completion, try to execute the operation in a different thread using a thread pool.
- 
- 
Field SummaryFields Modifier and Type Field Description static ChannelFutureListenerCLOSEAChannelFutureListenerthat closes theChannelwhich is associated with the specifiedChannelFuture.static ChannelFutureListenerCLOSE_ON_FAILUREAChannelFutureListenerthat closes theChannelwhen the operation ended up with a failure or cancellation rather than a success.static ChannelFutureListenerFIRE_EXCEPTION_ON_FAILURE
 - 
Method Summary- 
Methods inherited from interface io.netty.util.concurrent.GenericFutureListeneroperationComplete
 
- 
 
- 
- 
- 
Field Detail- 
CLOSEstatic final ChannelFutureListener CLOSE AChannelFutureListenerthat closes theChannelwhich is associated with the specifiedChannelFuture.
 - 
CLOSE_ON_FAILUREstatic final ChannelFutureListener CLOSE_ON_FAILURE AChannelFutureListenerthat closes theChannelwhen the operation ended up with a failure or cancellation rather than a success.
 - 
FIRE_EXCEPTION_ON_FAILUREstatic final ChannelFutureListener FIRE_EXCEPTION_ON_FAILURE AChannelFutureListenerthat forwards theThrowableof theChannelFutureinto theChannelPipeline. This mimics the old behavior of Netty 3.
 
- 
 
-