public static ScheduledExecutorService newSingleThreadScheduledExecutor(
      String poolName, Thread.UncaughtExceptionHandler handler) {
    logger.info(NEW_SINGLE_SCHEDULED_THREAD_POOL_LOGGER_FORMAT, poolName);
    return new WrappedSingleThreadScheduledExecutor(
        new ScheduledThreadPoolExecutor(1, new IoTThreadFactory(poolName, handler)), poolName);
  }
see {@link Executors#newSingleThreadExecutor(java.util.concurrent.ThreadFactory)}.

@param poolName the name of thread pool.
@return scheduled thread pool.
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/concurrent/IoTDBThreadPoolFactory.java