Class AbstractCodecEmbedder.EmbeddedChannelSink
- java.lang.Object
-
- org.jboss.netty.handler.codec.embedder.AbstractCodecEmbedder.EmbeddedChannelSink
-
- All Implemented Interfaces:
ChannelHandler
,ChannelSink
,ChannelUpstreamHandler
- Enclosing class:
- AbstractCodecEmbedder<E>
private final class AbstractCodecEmbedder.EmbeddedChannelSink extends java.lang.Object implements ChannelSink, ChannelUpstreamHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
Constructor Summary
Constructors Constructor Description EmbeddedChannelSink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
.ChannelFuture
execute(ChannelPipeline pipeline, java.lang.Runnable task)
Execute the givenRunnable
later in the io-thread.private void
handleEvent(ChannelEvent e)
void
handleUpstream(ChannelHandlerContext ctx, ChannelEvent e)
Handles the specified upstream event.
-
-
-
Method Detail
-
handleUpstream
public void handleUpstream(ChannelHandlerContext ctx, ChannelEvent e)
Description copied from interface:ChannelUpstreamHandler
Handles the specified upstream event.- Specified by:
handleUpstream
in interfaceChannelUpstreamHandler
- Parameters:
ctx
- the context object for this handlere
- the upstream event to process or intercept
-
eventSunk
public void eventSunk(ChannelPipeline pipeline, ChannelEvent e)
Description copied from interface:ChannelSink
Invoked byChannelPipeline
when a downstreamChannelEvent
has reached its terminal (the head of the pipeline).- Specified by:
eventSunk
in interfaceChannelSink
-
handleEvent
private void handleEvent(ChannelEvent e)
-
exceptionCaught
public void exceptionCaught(ChannelPipeline pipeline, ChannelEvent e, ChannelPipelineException cause) throws java.lang.Exception
Description copied from interface:ChannelSink
Invoked byChannelPipeline
when an exception was raised while one of itsChannelHandler
s process aChannelEvent
.- Specified by:
exceptionCaught
in interfaceChannelSink
- Throws:
java.lang.Exception
-
execute
public ChannelFuture execute(ChannelPipeline pipeline, java.lang.Runnable task)
Description copied from interface:ChannelSink
Execute the givenRunnable
later in the io-thread. Some implementation may not support this and just execute it directly.- Specified by:
execute
in interfaceChannelSink
-
-