Interface ChannelFutureListener
- All Superinterfaces:
EventListener, GenericFutureListener<ChannelFuture>
- All Known Implementing Classes:
ChannelPromiseAggregator, ChannelPromiseNotifier, DefaultHttp2ConnectionEncoder.FlowControlledBase, DelegatingChannelPromiseNotifier
Listens to the result of a
ChannelFuture. The result of the
asynchronous Channel I/O operation is notified once this listener
is added by calling ChannelFuture.addListener(GenericFutureListener).
Return the control to the caller quickly
GenericFutureListener.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 Summary
FieldsModifier and TypeFieldDescriptionstatic final ChannelFutureListenerAChannelFutureListenerthat closes theChannelwhich is associated with the specifiedChannelFuture.static final ChannelFutureListenerAChannelFutureListenerthat closes theChannelwhen the operation ended up with a failure or cancellation rather than a success.static final ChannelFutureListener -
Method Summary
Methods inherited from interface GenericFutureListener
operationComplete
-
Field Details
-
CLOSE
AChannelFutureListenerthat closes theChannelwhich is associated with the specifiedChannelFuture. -
CLOSE_ON_FAILURE
AChannelFutureListenerthat closes theChannelwhen the operation ended up with a failure or cancellation rather than a success. -
FIRE_EXCEPTION_ON_FAILURE
AChannelFutureListenerthat forwards theThrowableof theChannelFutureinto theChannelPipeline. This mimics the old behavior of Netty 3.
-