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(); boolean canHandleDownstream();
/** /**
* Sends the specified {@link ChannelEvent} to the next handler in the * Sends the specified {@link ChannelEvent} to the next
* {@link ChannelPipeline}. It is always recommended to use the * {@link ChannelUpstreamHandler} in the {@link ChannelPipeline}. It is
* event generation methods provided by {@link Channels} rather than * recommended to use the event generation methods in {@link Channels}
* calling this method directly by yourself. * rather than calling this method directly.
*/ */
void sendUpstream(ChannelEvent e); void sendUpstream(ChannelEvent e);
/** /**
* Sends the specified {@link ChannelEvent} to the previous handler in the * Sends the specified {@link ChannelEvent} to the previous
* {@link ChannelPipeline}. It is always recommended to use the * {@link ChannelDownstreamHandler} in the {@link ChannelPipeline}. It is
* event generation methods provided by {@link Channels} rather than * recommended to use the event generation methods in {@link Channels}
* calling this method directly by yourself. * rather than calling this method directly.
*/ */
void sendDownstream(ChannelEvent e); void sendDownstream(ChannelEvent e);
} }

View File

@ -94,6 +94,10 @@ import org.jboss.netty.handler.ssl.SslHandler;
* | I/O Threads (Transport Implementation) | * | I/O Threads (Transport Implementation) |
* +------------------------------------------------------------------+ * +------------------------------------------------------------------+
* </pre> * </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> * <h3>Building a pipeline</h3>
* <p> * <p>