class IoTDBThreadPoolFactory {

  public static ExecutorService newFixedThreadPool(int nthreads, String poolName) {
    logger.info("new fixed thread pool: {}, thread number: {}", poolName, nthreads);
    return Executors.newFixedThreadPool(nthreads, new IoTThreadFactory(poolName));
  }

  private  IoTDBThreadPoolFactory();

}