@Override
    public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {

        if (evt == EnableAutoRead.INSTANCE) {
            channel.config().setAutoRead(true);
        } else if (evt instanceof Reset) {
            reset();
        } else if (evt instanceof PingBeforeActivate) {

            PingBeforeActivate pba = (PingBeforeActivate) evt;

            stack.addFirst(pba.getCommand());
            ctx.writeAndFlush(pba.getCommand());
            return;
        }

        super.userEventTriggered(ctx, evt);
    }
@ Override public void userEventTriggered ( ChannelHandlerContext ctx , Object evt ) throws Exception { if ( evt == EnableAutoRead . INSTANCE ) { channel . config ( ) . setAutoRead ( true ) ; } else if ( evt instanceof Reset ) { reset ( ) ; } else if ( evt instanceof PingBeforeActivate ) { PingBeforeActivate pba = ( PingBeforeActivate ) evt ; stack . addFirst ( pba . getCommand ( ) ) ; ctx . writeAndFlush ( pba . getCommand ( ) ) ; return ; } super . userEventTriggered ( ctx , evt ) ; }
@see io.netty.channel.ChannelInboundHandlerAdapter#userEventTriggered(io.netty.channel.ChannelHandlerContext, Object)