From c36812d55dfe2bac227f9c0257c15cda1828308b Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Thu, 10 Sep 2009 04:27:03 +0000 Subject: [PATCH] More documentation on state management --- src/main/java/org/jboss/netty/channel/ChannelLocal.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jboss/netty/channel/ChannelLocal.java b/src/main/java/org/jboss/netty/channel/ChannelLocal.java index 5bd09fc561..a259aa54c8 100644 --- a/src/main/java/org/jboss/netty/channel/ChannelLocal.java +++ b/src/main/java/org/jboss/netty/channel/ChannelLocal.java @@ -25,8 +25,9 @@ import org.jboss.netty.util.internal.ConcurrentIdentityWeakKeyHashMap; * a {@link Thread#currentThread()}. One difference is that you always have to * specify the {@link Channel} to access the variable. *

- * As an alternative, you might want to use an attachment storage provided by - * {@link ChannelHandlerContext}. + * Alternatively, you might want to use the + * {@link ChannelHandlerContext#setAttachment(Object) ChannelHandlerContext.attachment} + * property, which performs better. * * @author The Netty Project (netty-dev@lists.jboss.org) * @author Trustin Lee (tlee@redhat.com)