Class AbstractThreadPoolExecutorFactory<T extends ExecutorService>

java.lang.Object
org.infinispan.factories.threads.AbstractThreadPoolExecutorFactory<T>
All Implemented Interfaces:
ThreadPoolExecutorFactory<T>
Direct Known Subclasses:
EnhancedQueueExecutorFactory, NonBlockingThreadPoolExecutorFactory

public abstract class AbstractThreadPoolExecutorFactory<T extends ExecutorService> extends Object implements ThreadPoolExecutorFactory<T>
Abstract ThreadPoolExecutorFactory that contains commons variables for configuring a thread pool
Author:
wburns
  • Field Details

    • maxThreads

      protected final int maxThreads
    • coreThreads

      protected final int coreThreads
    • queueLength

      protected final int queueLength
    • keepAlive

      protected final long keepAlive
  • Constructor Details

    • AbstractThreadPoolExecutorFactory

      protected AbstractThreadPoolExecutorFactory(int maxThreads, int coreThreads, int queueLength, long keepAlive)
  • Method Details

    • maxThreads

      public int maxThreads()
    • coreThreads

      public int coreThreads()
    • queueLength

      public int queueLength()
    • keepAlive

      public long keepAlive()