Examples of DescriptiveThreadFactory


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

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

      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

Examples of org.uberfire.commons.async.DescriptiveThreadFactory

        }
    }

    private synchronized ExecutorService getExecutorService() {
        if ( executorService == null ) {
            executorService = Executors.newCachedThreadPool( new DescriptiveThreadFactory() );
        }
        return executorService;
    }
View Full Code Here

Examples of org.uberfire.commons.async.DescriptiveThreadFactory

        this.useExecService.set( true );
    }

    private ExecutorService getExecutorService() {
        if ( executorService == null ) {
            executorService = Executors.newCachedThreadPool( new DescriptiveThreadFactory() );
        }
        return executorService;
    }
View Full Code Here

Examples of org.uberfire.commons.async.DescriptiveThreadFactory

        this.useExecService.set( true );
    }

    private ExecutorService getExecutorService() {
        if ( executorService == null ) {
            executorService = Executors.newCachedThreadPool( new DescriptiveThreadFactory() );
        }
        return executorService;
    }
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.