@Override public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception { System.out.println("write2"); // ReferenceCountUtil.release(msg); super.write(ctx, msg, promise); }
@Override public void connect( ChannelHandlerContext ctx, SocketAddress remoteAddress, SocketAddress localAddress, ChannelPromise promise) throws Exception { System.out.println("connected"); super.connect(ctx, remoteAddress, localAddress, promise); }
@Override public void bind(ChannelHandlerContext ctx, SocketAddress localAddress, ChannelPromise promise) throws Exception { System.out.println("bind evernt"); super.bind(ctx, localAddress, promise); }