replaced broken < with < and same for gt
This commit is contained in:
parent
d33a80da26
commit
e1273147fa
@ -62,7 +62,7 @@ import java.util.concurrent.TimeUnit;
|
||||
* // for 30 seconds. The connection is closed when there is no inbound traffic
|
||||
* // for 60 seconds.
|
||||
*
|
||||
* public class MyChannelInitializer extends {@link ChannelInitializer}<{@link Channel}> {
|
||||
* public class MyChannelInitializer extends {@link ChannelInitializer}<{@link Channel}> {
|
||||
* {@code @Override}
|
||||
* public void initChannel({@link Channel} channel) {
|
||||
* channel.pipeline().addLast("idleStateHandler", new {@link IdleStateHandler}(60, 30, 0));
|
||||
|
@ -33,7 +33,7 @@ import java.util.concurrent.TimeUnit;
|
||||
* // The connection is closed when there is no inbound traffic
|
||||
* // for 30 seconds.
|
||||
*
|
||||
* public class MyChannelInitializer extends {@link ChannelInitializer}<{@link Channel}> {
|
||||
* public class MyChannelInitializer extends {@link ChannelInitializer}<{@link Channel}> {
|
||||
* public void initChannel({@link Channel} channel) {
|
||||
* channel.pipeline().addLast("readTimeoutHandler", new {@link ReadTimeoutHandler}(30);
|
||||
* channel.pipeline().addLast("myHandler", new MyHandler());
|
||||
|
@ -36,7 +36,7 @@ import java.util.concurrent.TimeUnit;
|
||||
* // The connection is closed when there is no outbound traffic
|
||||
* // for 30 seconds.
|
||||
*
|
||||
* public class MyChannelInitializer extends {@link ChannelInitializer}<{@link Channel}> {
|
||||
* public class MyChannelInitializer extends {@link ChannelInitializer}<{@link Channel}> {
|
||||
* public void initChannel({@link Channel} channel) {
|
||||
* channel.pipeline().addLast("writeTimeoutHandler", new {@link WriteTimeoutHandler}(30);
|
||||
* channel.pipeline().addLast("myHandler", new MyHandler());
|
||||
|
@ -95,7 +95,7 @@ import java.lang.annotation.Target;
|
||||
* <pre>
|
||||
* // Create a new handler instance per channel.
|
||||
* // See {@link ChannelInitializer#initChannel(Channel)}.
|
||||
* public class DataServerInitializer extends {@link ChannelInitializer}<{@link Channel}> {
|
||||
* public class DataServerInitializer extends {@link ChannelInitializer}<{@link Channel}> {
|
||||
* {@code @Override}
|
||||
* public void initChannel({@link Channel} channel) {
|
||||
* channel.pipeline().addLast("handler", <b>new DataServerHandler()</b>);
|
||||
@ -117,12 +117,12 @@ import java.lang.annotation.Target;
|
||||
*
|
||||
* {@code @Sharable}
|
||||
* public class DataServerHandler extends {@link SimpleChannelInboundHandler}<Message> {
|
||||
* private final {@link AttributeKey}<{@link Boolean}> auth =
|
||||
* private final {@link AttributeKey}<{@link Boolean}> auth =
|
||||
* {@link AttributeKey#valueOf(String) AttributeKey.valueOf("auth")};
|
||||
*
|
||||
* {@code @Override}
|
||||
* public void channelRead({@link ChannelHandlerContext} ctx, Message message) {
|
||||
* {@link Attribute}<{@link Boolean}> attr = ctx.attr(auth);
|
||||
* {@link Attribute}<{@link Boolean}> attr = ctx.attr(auth);
|
||||
* {@link Channel} ch = ctx.channel();
|
||||
* if (message instanceof LoginMessage) {
|
||||
* authenticate((LoginMessage) o);
|
||||
@ -141,7 +141,7 @@ import java.lang.annotation.Target;
|
||||
* Now that the state of the handler is attached to the {@link ChannelHandlerContext}, you can add the
|
||||
* same handler instance to different pipelines:
|
||||
* <pre>
|
||||
* public class DataServerInitializer extends {@link ChannelInitializer}<{@link Channel}> {
|
||||
* public class DataServerInitializer extends {@link ChannelInitializer}<{@link Channel}> {
|
||||
*
|
||||
* private static final DataServerHandler <b>SHARED</b> = new DataServerHandler();
|
||||
*
|
||||
|
@ -88,13 +88,13 @@ import java.nio.channels.Channels;
|
||||
* <pre>
|
||||
* public class FactorialHandler extends {@link ChannelInboundHandlerAdapter} {
|
||||
*
|
||||
* private final {@link AttributeKey}<{@link Integer}> counter = {@link AttributeKey}.valueOf("counter");
|
||||
* private final {@link AttributeKey}<{@link Integer}> counter = {@link AttributeKey}.valueOf("counter");
|
||||
*
|
||||
* // This handler will receive a sequence of increasing integers starting
|
||||
* // from 1.
|
||||
* {@code @Override}
|
||||
* public void channelRead({@link ChannelHandlerContext} ctx, Object msg) {
|
||||
* {@link Attribute}<{@link Integer}> attr = ctx.getAttr(counter);
|
||||
* {@link Attribute}<{@link Integer}> attr = ctx.getAttr(counter);
|
||||
* Integer a = ctx.getAttr(counter).get();
|
||||
*
|
||||
* if (a == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user