Class StandardThreadExecutor

All Implemented Interfaces:
Executor, ExecutorService, MBeanRegistration, Executor, JmxEnabled, Lifecycle, ResizableExecutor

public class StandardThreadExecutor extends LifecycleMBeanBase implements Executor, ExecutorService, ResizableExecutor
  • Field Details

    • sm

      protected static final StringManager sm
    • threadPriority

      protected int threadPriority
      Default thread priority
    • daemon

      protected boolean daemon
      Run threads in daemon or non-daemon state
    • namePrefix

      protected String namePrefix
      Default name prefix for the thread name
    • maxThreads

      protected int maxThreads
      max number of threads
    • minSpareThreads

      protected int minSpareThreads
      min number of threads
    • maxIdleTime

      protected int maxIdleTime
      idle time in milliseconds
    • executor

      protected ThreadPoolExecutor executor
      The executor we use for this component
    • name

      protected String name
      the name of this thread pool
    • maxQueueSize

      protected int maxQueueSize
      The maximum number of elements that can queue up before we reject them
    • threadRenewalDelay

      protected long threadRenewalDelay
      After a context is stopped, threads in the pool are renewed. To avoid renewing all threads at the same time, this delay is observed between 2 threads being renewed.
  • Constructor Details

    • StandardThreadExecutor

      public StandardThreadExecutor()
  • Method Details