Executors.newCachedThreadPool(),
ioWorkerCount));
ChannelPipelineFactory factory;
if (sslContext == null) {
factory = new HttpServerPipelineFactory(dispatcher, root, executorThreadCount, maxRequestSize);
} else {
factory = new HttpsServerPipelineFactory(dispatcher, root, executorThreadCount, maxRequestSize, sslContext);
}
// Set up the event pipeline factory.
bootstrap.setPipelineFactory(factory);