use of org.apache.ratis.thirdparty.io.netty.channel.ChannelPipeline in project incubator-ratis by apache.
the class NettyServerStreamRpc method getInitializer.
private ChannelInitializer<SocketChannel> getInitializer() {
return new ChannelInitializer<SocketChannel>() {
@Override
public void initChannel(SocketChannel ch) {
ChannelPipeline p = ch.pipeline();
p.addLast(newDecoder());
p.addLast(newEncoder());
p.addLast(newChannelInboundHandlerAdapter());
}
};
}
Aggregations