Class FastThreadPoolExecutor

    • Constructor Detail

      • FastThreadPoolExecutor

        public FastThreadPoolExecutor​(int maximumPoolSize,
                                      int maximumQueueSize,
                                      String threadPrefix,
                                      Class<?> loggerIdentity)
        Constructs a FastThreadPoolExecutor instance.
        Parameters:
        maximumPoolSize - the maximum number of threads to allow in the pool. Threads will terminate after being idle for 15 seconds.
        maximumQueueSize - the capacity of the queue.
        threadPrefix - the name prefix for threads created by this executor.
        loggerIdentity - the class to use as logger name for logging uncaught exceptions from the threads.
      • FastThreadPoolExecutor

        public FastThreadPoolExecutor​(int maximumPoolSize,
                                      int maximumQueueSize,
                                      long keepAliveTime,
                                      TimeUnit unit,
                                      String threadPrefix,
                                      Class<?> loggerIdentity)
        Constructs a FastThreadPoolExecutor instance.
        Parameters:
        maximumPoolSize - the maximum number of threads to allow in the pool.
        maximumQueueSize - the capacity of the queue.
        keepAliveTime - the maximum time that idle threads will wait for new tasks before terminating.
        unit - the time unit for the keepAliveTime argument
        threadPrefix - the name prefix for threads created by this executor.
        loggerIdentity - the class to use as logger name for logging uncaught exceptions from the threads.