Package com.google.code.hs4j.network.util

Examples of com.google.code.hs4j.network.util.WorkerThreadFactory


  public PoolDispatcher(int poolSize, long keepAliveTime, TimeUnit unit,
      RejectedExecutionHandler rejectedExecutionHandler, String prefix) {
    this.threadPool = new ThreadPoolExecutor(poolSize,
        (int) (MAX_POOL_SIZE_FACTOR * poolSize), keepAliveTime, unit,
        new ArrayBlockingQueue<Runnable>(poolSize
            * POOL_QUEUE_SIZE_FACTOR), new WorkerThreadFactory(
            prefix));
    this.threadPool.setRejectedExecutionHandler(rejectedExecutionHandler);
  }
View Full Code Here

TOP

Related Classes of com.google.code.hs4j.network.util.WorkerThreadFactory

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.