private static ThreadPoolExecutor initExecutorService() {
    ThreadPoolExecutor threadPoolExecutor =
        new ScalingThreadPoolExecutor(
            THREAD_POOL_CORE_SIZE,
            THREAD_POOL_MAX_SIZE,
            THREAD_POOL_TIMEOUT_MILLIS,
            TimeUnit.MILLISECONDS,
            THREAD_POOL_WORKER_QUEUE_SIZE);
    threadPoolExecutor.allowCoreThreadTimeOut(true);

    ThreadFactory threadFactory = new ThreadFactoryBuilder().setDaemon(true).setNameFormat(
        "ambari-property-provider-thread-%d").build();

    threadPoolExecutor.setThreadFactory(threadFactory);

    return threadPoolExecutor;
  }
Generates thread pool with default parameters
ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/ThreadPoolEnabledPropertyProvider.java