Package com.netflix.recipes.rss.util

Examples of com.netflix.recipes.rss.util.DescriptiveThreadFactory


          decoder, numBossThreads);

      ThreadPoolExecutor bossPool = new ThreadPoolExecutor(
          numBossThreads, numBossThreads, 60, TimeUnit.SECONDS,
          new LinkedBlockingQueue<Runnable>(),
          new DescriptiveThreadFactory("Boss-Thread"));

      ThreadPoolExecutor workerPool = new ThreadPoolExecutor(
          numWorkerThreads, numWorkerThreads, 60, TimeUnit.SECONDS,
          new LinkedBlockingQueue<Runnable>(),
          new DescriptiveThreadFactory("Worker-Thread"));

      ChannelFactory nioServer = new NioServerSocketChannelFactory(
          bossPool, workerPool, numWorkerThreads);

      ServerBootstrap serverBootstrap = new ServerBootstrap(nioServer);
View Full Code Here


      if (numThreads != 0) {
        ThreadPoolExecutor executorThreadPool = new ThreadPoolExecutor(
            NettyServer.cpus, NettyServer.cpus * 4, 60,
            TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(),
            new DescriptiveThreadFactory("Executor-Thread"));

        this.executionHandler = new ExecutionHandler(executorThreadPool);
      } else {
        this.executionHandler = null;
      }
View Full Code Here

TOP

Related Classes of com.netflix.recipes.rss.util.DescriptiveThreadFactory

Copyright © 2018 www.massapicom. 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.