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