Examples of SslHettyChannelPipelineFactory


Examples of com.hetty.core.ssl.SslHettyChannelPipelineFactory

    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));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.