use of org.apache.ratis.experiments.nettyzerocopy.decoders.RequestDecoderComposite in project incubator-ratis by apache.
the class NettyServer method getInitializer.
private ChannelInitializer<SocketChannel> getInitializer() {
return new ChannelInitializer<SocketChannel>() {
@Override
public void initChannel(SocketChannel ch) throws Exception {
ChannelPipeline p = ch.pipeline();
p.addLast(new RequestDecoderComposite());
p.addLast(new ResponseEncoder());
p.addLast(getServerHandler());
}
};
}
Aggregations