protected void bindChannel(ReactorChannelHandler<IN, OUT, ChannelStream<IN, OUT>> handler, SocketChannel nativeChannel) { NettyChannelStream<IN ,OUT> netChannel = new NettyChannelStream<IN, OUT>( getDefaultEnvironment(), getDefaultCodec(), getDefaultPrefetchSize(), getDefaultDispatcher(), nativeChannel ); ChannelPipeline pipeline = nativeChannel.pipeline(); if(log.isDebugEnabled()){ pipeline.addLast(new LoggingHandler(NettyTcpServer.class)); } pipeline.addLast( new NettyChannelHandlerBridge<IN, OUT>(handler, netChannel) ); }