ExecutorService serverWorkerExecutor = createExecutorService(serverWorkerThreadPoolSize,
"router-server-worker-thread-%d");
serverBootstrap = new ServerBootstrap(
new NioServerSocketChannelFactory(serverBossExecutor, serverWorkerExecutor));
serverBootstrap.setOption("backlog", serverConnectionBacklog);
serverBootstrap.setOption("child.bufferFactory", new DirectChannelBufferFactory());
// Setup the pipeline factory
serverBootstrap.setPipelineFactory(
new ChannelPipelineFactory() {
@Override