@Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { assert ctx == inboundCtx.ctx; if (!inboundCtx.removed) { inboundHandler.channelRead(inboundCtx, msg); } else { inboundCtx.fireChannelRead(msg); } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { handler.channelInactive(ctx); }
@Override public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception { handler.channelWritabilityChanged(ctx); }
@Override public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception { handler.userEventTriggered(ctx, evt); }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { handler.channelActive(ctx); }
@SuppressWarnings("deprecation") @Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { handler.exceptionCaught(ctx, cause); }
@Override public void channelReadComplete(ChannelHandlerContext ctx) throws Exception { handler.channelReadComplete(ctx); }
@Override public void channelUnregistered(ChannelHandlerContext ctx) throws Exception { handler.channelUnregistered(ctx); }
@Override public void channelRegistered(ChannelHandlerContext ctx) throws Exception { handler.channelRegistered(ctx); }
@Override public void handlerAdded(ChannelHandlerContext ctx) throws Exception { handler.handlerAdded(ctx); }
@Override public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception { assert ctx == inboundCtx.ctx; if (!inboundCtx.removed) { inboundHandler.userEventTriggered(inboundCtx, evt); } else { inboundCtx.fireUserEventTriggered(evt); } }
@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { assert ctx == inboundCtx.ctx; if (!inboundCtx.removed) { inboundHandler.channelActive(inboundCtx); } else { inboundCtx.fireChannelActive(); } }
@Override public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { assert ctx == inboundCtx.ctx; if (!inboundCtx.removed) { inboundHandler.exceptionCaught(inboundCtx, cause); } else { inboundCtx.fireExceptionCaught(cause); } }
@Override public void channelReadComplete(ChannelHandlerContext ctx) throws Exception { assert ctx == inboundCtx.ctx; if (!inboundCtx.removed) { inboundHandler.channelReadComplete(inboundCtx); } else { inboundCtx.fireChannelReadComplete(); } }
@Override public void channelUnregistered(ChannelHandlerContext ctx) throws Exception { assert ctx == inboundCtx.ctx; if (!inboundCtx.removed) { inboundHandler.channelUnregistered(inboundCtx); } else { inboundCtx.fireChannelUnregistered(); } }
@Override public void channelRegistered(ChannelHandlerContext ctx) throws Exception { assert ctx == inboundCtx.ctx; if (!inboundCtx.removed) { inboundHandler.channelRegistered(inboundCtx); } else { inboundCtx.fireChannelRegistered(); } }
inboundHandler.handlerAdded(inboundCtx); } finally { outboundHandler.handlerAdded(outboundCtx);
@Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { assert ctx == inboundCtx.ctx; if (!inboundCtx.removed) { inboundHandler.channelRead(inboundCtx, msg); } else { inboundCtx.fireChannelRead(msg); } }
@Override public void channelWritabilityChanged(ChannelHandlerContext ctx) throws Exception { assert ctx == inboundCtx.ctx; if (!inboundCtx.removed) { inboundHandler.channelWritabilityChanged(inboundCtx); } else { inboundCtx.fireChannelWritabilityChanged(); } }
@Override public void channelInactive(ChannelHandlerContext ctx) throws Exception { assert ctx == inboundCtx.ctx; if (!inboundCtx.removed) { inboundHandler.channelInactive(inboundCtx); } else { inboundCtx.fireChannelInactive(); } }