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
ChannelEvent
s.
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 TypeMethodDescriptionvoid
eventSunk
(ChannelPipeline pipeline, ChannelEvent e) Invoked byChannelPipeline
when a downstreamChannelEvent
has reached its terminal (the head of the pipeline).void
exceptionCaught
(ChannelPipeline pipeline, ChannelEvent e, ChannelPipelineException cause) Invoked byChannelPipeline
when an exception was raised while one of itsChannelHandler
s process aChannelEvent
.execute
(ChannelPipeline pipeline, Runnable task) Execute the givenRunnable
later in the io-thread.
-
Method Details
-
eventSunk
Invoked byChannelPipeline
when a downstreamChannelEvent
has reached its terminal (the head of the pipeline).- Throws:
Exception
-
exceptionCaught
void exceptionCaught(ChannelPipeline pipeline, ChannelEvent e, ChannelPipelineException cause) throws Exception Invoked byChannelPipeline
when an exception was raised while one of itsChannelHandler
s process aChannelEvent
.- Throws:
Exception
-
execute
Execute the givenRunnable
later in the io-thread. Some implementation may not support this and just execute it directly.
-