From b23b9dd03b0d5ca9898cc3f63cec8f849e7004a5 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Wed, 3 Sep 2008 03:04:51 +0000 Subject: [PATCH] More explanation + more links --- .../netty/channel/ChannelHandlerContext.java | 16 ++++++++-------- .../org/jboss/netty/channel/ChannelPipeline.java | 4 ++++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/jboss/netty/channel/ChannelHandlerContext.java b/src/main/java/org/jboss/netty/channel/ChannelHandlerContext.java index 1233174199..03f283805f 100644 --- a/src/main/java/org/jboss/netty/channel/ChannelHandlerContext.java +++ b/src/main/java/org/jboss/netty/channel/ChannelHandlerContext.java @@ -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); } \ No newline at end of file diff --git a/src/main/java/org/jboss/netty/channel/ChannelPipeline.java b/src/main/java/org/jboss/netty/channel/ChannelPipeline.java index ee4f797855..7499824708 100644 --- a/src/main/java/org/jboss/netty/channel/ChannelPipeline.java +++ b/src/main/java/org/jboss/netty/channel/ChannelPipeline.java @@ -94,6 +94,10 @@ import org.jboss.netty.handler.ssl.SslHandler; * | I/O Threads (Transport Implementation) | * +------------------------------------------------------------------+ * + * 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). * *

Building a pipeline

*