use of org.apache.ratis.thirdparty.io.netty.channel.ChannelInitializer 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