More documentation on state management
This commit is contained in:
parent
3d2579b8cb
commit
c36812d55d
@ -25,8 +25,9 @@ import org.jboss.netty.util.internal.ConcurrentIdentityWeakKeyHashMap;
|
|||||||
* a {@link Thread#currentThread()}. One difference is that you always have to
|
* a {@link Thread#currentThread()}. One difference is that you always have to
|
||||||
* specify the {@link Channel} to access the variable.
|
* specify the {@link Channel} to access the variable.
|
||||||
* <p>
|
* <p>
|
||||||
* As an alternative, you might want to use an attachment storage provided by
|
* Alternatively, you might want to use the
|
||||||
* {@link ChannelHandlerContext}.
|
* {@link ChannelHandlerContext#setAttachment(Object) ChannelHandlerContext.attachment}
|
||||||
|
* property, which performs better.
|
||||||
*
|
*
|
||||||
* @author The Netty Project (netty-dev@lists.jboss.org)
|
* @author The Netty Project (netty-dev@lists.jboss.org)
|
||||||
* @author Trustin Lee (tlee@redhat.com)
|
* @author Trustin Lee (tlee@redhat.com)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user