Improve doc of IdleStateHandler according to example given in UptimeClientHandler (L57)

This commit is contained in:
Alex Petrov 2013-11-20 10:13:33 +01:00 committed by Norman Maurer
parent a159d3ebac
commit 90309f9065

View File

@ -74,8 +74,8 @@ import java.util.concurrent.TimeUnit;
* public class MyHandler extends {@link ChannelDuplexHandler} { * public class MyHandler extends {@link ChannelDuplexHandler} {
* {@code @Override} * {@code @Override}
* 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 IdleStateEvent}} {
* {@link IdleState} e = ({@link IdleState}) evt; * {@link IdleStateEvent} e = ({@link IdleStateEvent}) evt;
* if (e.state() == {@link IdleState}.READER_IDLE) { * if (e.state() == {@link IdleState}.READER_IDLE) {
* ctx.close(); * ctx.close();
* } else if (e.state() == {@link IdleState}.WRITER_IDLE) { * } else if (e.state() == {@link IdleState}.WRITER_IDLE) {