use of org.apache.ratis.experiments.nettyzerocopy.encoders.RequestEncoder in project incubator-ratis by apache.
the class NettyClient 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 RequestEncoder());
p.addLast(new ResponseDecoder());
p.addLast(getClientHandler());
}
};
}
Aggregations