[#1936] Fix example in javadoc
This commit is contained in:
parent
35cd13d10e
commit
79562d5891
@ -76,9 +76,9 @@ import java.util.concurrent.TimeUnit;
|
|||||||
* public void userEventTriggered({@link ChannelHandlerContext} ctx, {@link Object} evt) throws {@link Exception} {
|
* public void userEventTriggered({@link ChannelHandlerContext} ctx, {@link Object} evt) throws {@link Exception} {
|
||||||
* if (evt instanceof {@link IdleState}} {
|
* if (evt instanceof {@link IdleState}} {
|
||||||
* {@link IdleState} e = ({@link IdleState}) evt;
|
* {@link IdleState} e = ({@link IdleState}) evt;
|
||||||
* if (e.getState() == {@link IdleState}.READER_IDLE) {
|
* if (e.state() == {@link IdleState}.READER_IDLE) {
|
||||||
* ctx.close();
|
* ctx.close();
|
||||||
* } else if (e.getState() == {@link IdleState}.WRITER_IDLE) {
|
* } else if (e.state() == {@link IdleState}.WRITER_IDLE) {
|
||||||
* ctx.writeAndFlush(new PingMessage());
|
* ctx.writeAndFlush(new PingMessage());
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
|
Loading…
Reference in New Issue
Block a user