Fix API documentation on the usage of AttributeKey
This commit is contained in:
parent
f122118bf7
commit
7d501db7f8
@ -105,13 +105,13 @@ import java.net.SocketAddress;
|
|||||||
* {@code @Sharable}
|
* {@code @Sharable}
|
||||||
* public class DataServerHandler extends {@link SimpleChannelInboundHandler}<Message> {
|
* public class DataServerHandler extends {@link SimpleChannelInboundHandler}<Message> {
|
||||||
* private final {@link AttributeKey}<{@link Boolean}> auth =
|
* 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
|
* // This handler will receive a sequence of increasing integers starting
|
||||||
* // from 1.
|
* // from 1.
|
||||||
* {@code @Override}
|
* {@code @Override}
|
||||||
* public void channelRead({@link ChannelHandlerContext} ctx, {@link Integer} integer) {
|
* 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}
|
* {@code @Override}
|
||||||
* public void channelRead({@link ChannelHandlerContext} ctx, Message message) {
|
* public void channelRead({@link ChannelHandlerContext} ctx, Message message) {
|
||||||
|
Loading…
Reference in New Issue
Block a user