@Override public boolean acceptInboundMessage(Object msg) throws Exception { return super.acceptInboundMessage(msg); }
@Override public boolean acceptInboundMessage(Object msg) throws Exception { return super.acceptInboundMessage(msg); }
@Override public boolean acceptInboundMessage(Object msg) throws Exception { return super.acceptInboundMessage(msg); }
@Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { boolean release = true; try { if (acceptInboundMessage(msg)) { @SuppressWarnings("unchecked") I imsg = (I) msg; channelRead0(ctx, imsg); } else { release = false; ctx.fireChannelRead(msg); } } finally { if (autoRelease && release) { ReferenceCountUtil.release(msg); } } }