More clarification on ChannelHandlerContext

This commit is contained in:
Trustin Lee 2008-09-24 10:37:19 +00:00
parent 92be78df49
commit 320b7133a2

View File

@ -25,6 +25,15 @@ package org.jboss.netty.channel;
/**
* Provides the properties and operations which are specific to the
* {@link ChannelHandler} and the {@link ChannelPipeline} it belongs to.
* Via a {@link ChannelHandlerContext}, a {@link ChannelHandler} can send
* a upstream or downstream {@link ChannelEvent} to the next or previous
* {@link ChannelHandler} in the {@link ChannelPipeline}.
*
* <pre>
* +---------+ 1 .. 1 +----------------+ 1 .. n +----------+
* | Handler |------->| HandlerContext |------->| Pipeline |
* +---------+ +----------------+ +----------+
* </pre>
*
* @author The Netty Project (netty-dev@lists.jboss.org)
* @author Trustin Lee (tlee@redhat.com)