Fix API documentation on the usage of AttributeKey
This commit is contained in:
parent
407e12d99b
commit
9b0e5b9148
@ -115,13 +115,13 @@ import java.lang.annotation.Target;
|
||||
* {@code @Sharable}
|
||||
* public class DataServerHandler extends {@link SimpleChannelInboundHandler}<Message> {
|
||||
* private final {@link AttributeKey}<{@link Boolean}> auth =
|
||||
* new {@link AttributeKey}<{@link Boolean}>("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}<{@link Boolean}> attr = ctx.getAttr(auth);
|
||||
* {@link Attribute}<{@link Boolean}> attr = ctx.attr(auth);
|
||||
*
|
||||
* {@code @Override}
|
||||
* public void channelRead({@link ChannelHandlerContext} ctx, Message message) {
|
||||
|
Loading…
Reference in New Issue
Block a user