Class BlockingThreadPoolExecutorFactory

  • All Implemented Interfaces:
    ThreadPoolExecutorFactory<java.util.concurrent.ExecutorService>

    public class BlockingThreadPoolExecutorFactory
    extends java.lang.Object
    implements ThreadPoolExecutorFactory<java.util.concurrent.ExecutorService>
    Author:
    Galder ZamarreƱo
    • Field Detail

      • DEFAULT_KEEP_ALIVE_MILLIS

        public static final int DEFAULT_KEEP_ALIVE_MILLIS
        See Also:
        Constant Field Values
    • Constructor Detail

      • BlockingThreadPoolExecutorFactory

        public BlockingThreadPoolExecutorFactory​(int maxThreads,
                                                 int coreThreads,
                                                 int queueLength,
                                                 long keepAlive)
    • Method Detail

      • maxThreads

        public int maxThreads()
      • coreThreads

        public int coreThreads()
      • queueLength

        public int queueLength()
      • keepAlive

        public long keepAlive()
      • createExecutor

        public java.util.concurrent.ExecutorService createExecutor​(java.util.concurrent.ThreadFactory threadFactory)
        Specified by:
        createExecutor in interface ThreadPoolExecutorFactory<java.util.concurrent.ExecutorService>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object