public interface ChannelSink
ChannelEvents.
A ChannelSink is an internal component which is supposed to be
implemented by a transport provider. Most users will not see this type
in their code.
| 限定符和类型 | 方法和说明 |
|---|---|
void |
eventSunk(ChannelPipeline pipeline,
ChannelEvent e)
Invoked by
ChannelPipeline when a downstream ChannelEvent
has reached its terminal (the head of the pipeline). |
void |
exceptionCaught(ChannelPipeline pipeline,
ChannelEvent e,
ChannelPipelineException cause)
Invoked by
ChannelPipeline when an exception was raised while
one of its ChannelHandlers process a ChannelEvent. |
ChannelFuture |
execute(ChannelPipeline pipeline,
java.lang.Runnable task)
Execute the given
Runnable later in the io-thread. |
void eventSunk(ChannelPipeline pipeline, ChannelEvent e) throws java.lang.Exception
ChannelPipeline when a downstream ChannelEvent
has reached its terminal (the head of the pipeline).java.lang.Exceptionvoid exceptionCaught(ChannelPipeline pipeline, ChannelEvent e, ChannelPipelineException cause) throws java.lang.Exception
ChannelPipeline when an exception was raised while
one of its ChannelHandlers process a ChannelEvent.java.lang.ExceptionChannelFuture execute(ChannelPipeline pipeline, java.lang.Runnable task)
Runnable later in the io-thread.
Some implementation may not support this and just execute it directly.