int maxSize = hettyConfig.getServerMaximumPoolSize();
int keepAlive = hettyConfig.getServerKeepAliveTime();
ThreadFactory threadFactory = new NamedThreadFactory("hetty-");
ExecutorService threadPool = new ThreadPoolExecutor(coreSize, maxSize, keepAlive,
TimeUnit.SECONDS, new SynchronousQueue<Runnable>(), threadFactory);
httpsBootstrap.setPipelineFactory(new SslHettyChannelPipelineFactory(threadPool));
if (!checkPortConfig(httpsListenPort)) {
throw new IllegalStateException("port: " + httpsListenPort + " already in use!");
}
httpsBootstrap.bind(new InetSocketAddress(httpsListenPort));