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 ChannelSinkReceives and processes the terminal downstreamChannelEvents.A
ChannelSinkis 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voideventSunk(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.ChannelFutureexecute(ChannelPipeline pipeline, java.lang.Runnable task)Execute the givenRunnablelater in the io-thread.
-
-
-
Method Detail
-
eventSunk
void eventSunk(ChannelPipeline pipeline, ChannelEvent e) throws java.lang.Exception
Invoked byChannelPipelinewhen a downstreamChannelEventhas reached its terminal (the head of the pipeline).- Throws:
java.lang.Exception
-
exceptionCaught
void exceptionCaught(ChannelPipeline pipeline, ChannelEvent e, ChannelPipelineException cause) throws java.lang.Exception
Invoked byChannelPipelinewhen an exception was raised while one of itsChannelHandlers process aChannelEvent.- Throws:
java.lang.Exception
-
execute
ChannelFuture execute(ChannelPipeline pipeline, java.lang.Runnable task)
Execute the givenRunnablelater in the io-thread. Some implementation may not support this and just execute it directly.
-
-