Package org.apache.accumulo.server.util

Examples of org.apache.accumulo.server.util.NamingThreadFactory


  private ExecutorService createEs(int max, String name) {
    return addEs(name, Executors.newFixedThreadPool(max, new NamingThreadFactory(name)));
  }
 
  private ExecutorService createEs(int max, String name, BlockingQueue<Runnable> queue) {
    ThreadPoolExecutor tp = new ThreadPoolExecutor(max, max, 0L, TimeUnit.MILLISECONDS, queue, new NamingThreadFactory(name));
   
    return addEs(name, tp);
  }
View Full Code Here


   
    return addEs(name, tp);
  }
 
  private ExecutorService createEs(int min, int max, int timeout, String name) {
    return addEs(name, new ThreadPoolExecutor(min, max, timeout, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>(), new NamingThreadFactory(name)));
  }
View Full Code Here

TOP

Related Classes of org.apache.accumulo.server.util.NamingThreadFactory

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.