More explanation + more links

This commit is contained in:
Trustin Lee 2008-09-03 03:04:51 +00:00
parent 80d14bbb0e
commit b23b9dd03b
2 changed files with 12 additions and 8 deletions

View File

@ -66,18 +66,18 @@ public interface ChannelHandlerContext {
boolean canHandleDownstream();
/**
* Sends the specified {@link ChannelEvent} to the next handler in the
* {@link ChannelPipeline}. It is always recommended to use the
* event generation methods provided by {@link Channels} rather than
* calling this method directly by yourself.
* Sends the specified {@link ChannelEvent} to the next
* {@link ChannelUpstreamHandler} in the {@link ChannelPipeline}. It is
* recommended to use the event generation methods in {@link Channels}
* rather than calling this method directly.
*/
void sendUpstream(ChannelEvent e);
/**
* Sends the specified {@link ChannelEvent} to the previous handler in the
* {@link ChannelPipeline}. It is always recommended to use the
* event generation methods provided by {@link Channels} rather than
* calling this method directly by yourself.
* Sends the specified {@link ChannelEvent} to the previous
* {@link ChannelDownstreamHandler} in the {@link ChannelPipeline}. It is
* recommended to use the event generation methods in {@link Channels}
* rather than calling this method directly.
*/
void sendDownstream(ChannelEvent e);
}

View File

@ -94,6 +94,10 @@ import org.jboss.netty.handler.ssl.SslHandler;
* | I/O Threads (Transport Implementation) |
* +------------------------------------------------------------------+
* </pre>
* Please note that a upstream event is processed by from the first upstream
* handler to the last upstream handler (i.e. to the next) and a downstream
* event is processed by from the last downstream handler to the first
* downstream handler (i.e. to the previous).
*
* <h3>Building a pipeline</h3>
* <p>