* Improved the diagram in ChannelPipeline

This commit is contained in:
Trustin Lee 2008-09-03 02:59:25 +00:00
parent b06323011d
commit 80d14bbb0e

View File

@ -59,40 +59,40 @@ import org.jboss.netty.handler.ssl.SslHandler;
*
* <pre>
*
* I/O Request
* via {@link Channel} or
* {@link ChannelHandlerContext}
* |
* +---------------------------------------------+----------------+
* | ChannelPipeline | |
* | \|/ |
* | +----------------------+ +-----------+------------+ |
* | LAST | Upstream Handler N | | Downstream Handler M | |
* | . +----------+-----------+ +-----------+------------+ |
* | . /|\ | |
* | . | \|/ |
* | . +----------+-----------+ +-----------+------------+ |
* | . | Upstream Handler N-1 | | Downstream Handler M-1 | |
* | . +----------+-----------+ +-----------+------------+ |
* | . /|\ . |
* | . . . |
* | . [ Going UPSTREAM ] [ Going DOWNSTREAM ] |
* | . . . |
* | . . \|/ |
* | . +----------+-----------+ +-----------+------------+ |
* | . | Upstream Handler 2 | | Downstream Handler 2 | |
* | . +----------+-----------+ +-----------+------------+ |
* | . /|\ | |
* | . | \|/ |
* | . +----------+-----------+ +-----------+------------+ |
* | FIRST | Upstream Handler 1 | | Downstream Handler 1 | |
* | +----------+-----------+ +-----------+------------+ |
* | /|\ | |
* +------------------+--------------------------+----------------+
* | \|/
* +------------------+--------------------------+----------------+
* | I/O Threads (Transport Implementation) |
* +--------------------------------------------------------------+
* I/O Request
* via {@link Channel} or
* {@link ChannelHandlerContext}
* |
* +---------------------------------------------+--------------------+
* | ChannelPipeline | |
* | \|/ |
* | +----------------------+ +-----------+------------+ |
* | LAST | Upstream Handler N | | Downstream Handler M | LAST |
* | . +----------+-----------+ +-----------+------------+ . |
* | . /|\ | . |
* | . | \|/ . |
* | . +----------+-----------+ +-----------+------------+ . |
* | . | Upstream Handler N-1 | | Downstream Handler M-1 | . |
* | . +----------+-----------+ +-----------+------------+ . |
* | . /|\ . . |
* | . . . . |
* | . [ Going UPSTREAM ] [ Going DOWNSTREAM ] . |
* | . . . . |
* | . . \|/ . |
* | . +----------+-----------+ +-----------+------------+ . |
* | . | Upstream Handler 2 | | Downstream Handler 2 | . |
* | . +----------+-----------+ +-----------+------------+ . |
* | . /|\ | . |
* | . | \|/ . |
* | . +----------+-----------+ +-----------+------------+ . |
* | FIRST | Upstream Handler 1 | | Downstream Handler 1 | FIRST |
* | +----------+-----------+ +-----------+------------+ |
* | /|\ | |
* +------------------+--------------------------+--------------------+
* | \|/
* +------------------+--------------------------+--------------------+
* | I/O Threads (Transport Implementation) |
* +------------------------------------------------------------------+
* </pre>
*
* <h3>Building a pipeline</h3>