Package org.jboss.netty.channel
Interface ChannelSink
- All Known Implementing Classes:
AbstractChannelSink,AbstractCodecEmbedder.EmbeddedChannelSink,AbstractNioChannelSink,AbstractOioChannelSink,DefaultChannelPipeline.DiscardingChannelSink,HttpTunnelingClientSocketPipelineSink,LocalClientChannelSink,LocalServerChannelSink,NioClientSocketPipelineSink,NioDatagramPipelineSink,NioServerSocketPipelineSink,OioClientSocketPipelineSink,OioDatagramPipelineSink,OioServerSocketPipelineSink
public interface ChannelSink
Receives and processes the terminal downstream
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.
-
Method Summary
Modifier and TypeMethodDescriptionvoideventSunk(ChannelPipeline pipeline, ChannelEvent e) Invoked byChannelPipelinewhen a downstreamChannelEventhas reached its terminal (the head of the pipeline).voidexceptionCaught(ChannelPipeline pipeline, ChannelEvent e, ChannelPipelineException cause) Invoked byChannelPipelinewhen an exception was raised while one of itsChannelHandlers process aChannelEvent.execute(ChannelPipeline pipeline, Runnable task) Execute the givenRunnablelater in the io-thread.
-
Method Details
-
eventSunk
Invoked byChannelPipelinewhen a downstreamChannelEventhas reached its terminal (the head of the pipeline).- Throws:
Exception
-
exceptionCaught
void exceptionCaught(ChannelPipeline pipeline, ChannelEvent e, ChannelPipelineException cause) throws Exception Invoked byChannelPipelinewhen an exception was raised while one of itsChannelHandlers process aChannelEvent.- Throws:
Exception
-
execute
Execute the givenRunnablelater in the io-thread. Some implementation may not support this and just execute it directly.
-