org.jboss.netty.channel
Interface ChannelSink

All Known Implementing Classes:
AbstractChannelSink

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.

Version:
$Rev: 186 $, $Date: 2008-09-02 22:20:03 +0900 (Tue, 02 Sep 2008) $
Author:
The Netty Project (netty-dev@lists.jboss.org), Trustin Lee (tlee@redhat.com)

Method Summary
 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.
 

Method Detail

eventSunk

void eventSunk(ChannelPipeline pipeline,
               ChannelEvent e)
               throws Exception
Invoked by ChannelPipeline when a downstream ChannelEvent has reached its terminal (the head of the pipeline).

Throws:
Exception

exceptionCaught

void exceptionCaught(ChannelPipeline pipeline,
                     ChannelEvent e,
                     ChannelPipelineException cause)
                     throws Exception
Invoked by ChannelPipeline when an exception was raised while one of its ChannelHandlers process a ChannelEvent.

Throws:
Exception


Copyright © 2008-Present JBoss - a division of Red Hat. All Rights Reserved.