Improve doc of IdleStateHandler according to example given in UptimeClientHandler (L57)
This commit is contained in:
parent
43943c7ab1
commit
883ab29d05
@ -74,8 +74,8 @@ import java.util.concurrent.TimeUnit;
|
||||
* public class MyHandler extends {@link ChannelDuplexHandler} {
|
||||
* {@code @Override}
|
||||
* public void userEventTriggered({@link ChannelHandlerContext} ctx, {@link Object} evt) throws {@link Exception} {
|
||||
* if (evt instanceof {@link IdleState}} {
|
||||
* {@link IdleState} e = ({@link IdleState}) evt;
|
||||
* if (evt instanceof {@link IdleStateEvent}} {
|
||||
* {@link IdleStateEvent} e = ({@link IdleStateEvent}) evt;
|
||||
* if (e.state() == {@link IdleState}.READER_IDLE) {
|
||||
* ctx.close();
|
||||
* } else if (e.state() == {@link IdleState}.WRITER_IDLE) {
|
||||
|
Loading…
Reference in New Issue
Block a user