Fix API documentation on the usage of AttributeKey

This commit is contained in:
Trustin Lee 2014-01-28 13:56:13 +09:00
parent f122118bf7
commit 7d501db7f8

View File

@ -105,13 +105,13 @@ import java.net.SocketAddress;
* {@code @Sharable}
* public class DataServerHandler extends {@link SimpleChannelInboundHandler}<Message> {
* private final {@link AttributeKey}&lt{@link Boolean}&gt auth =
* new {@link AttributeKey}&lt{@link Boolean}&gt("auth");
* {@link AttributeKey#valueOf(String) AttributeKey.valueOf("auth")};
*
* // This handler will receive a sequence of increasing integers starting
* // from 1.
* {@code @Override}
* public void channelRead({@link ChannelHandlerContext} ctx, {@link Integer} integer) {
* {@link Attribute}&lt{@link Boolean}&gt attr = ctx.getAttr(auth);
* {@link Attribute}&lt{@link Boolean}&gt attr = ctx.attr(auth);
*
* {@code @Override}
* public void channelRead({@link ChannelHandlerContext} ctx, Message message) {