use of io.netty.example.factorial.BigIntegerDecoder in project netty by netty.
the class PortUnificationServerHandler method switchToFactorial.
private void switchToFactorial(ChannelHandlerContext ctx) {
ChannelPipeline p = ctx.pipeline();
p.addLast("decoder", new BigIntegerDecoder());
p.addLast("encoder", new NumberEncoder());
p.addLast("handler", new FactorialServerHandler());
p.remove(this);
}
Aggregations