Class ScalingThreadPoolExecutor

All Implemented Interfaces:
Executor, ExecutorService

public class ScalingThreadPoolExecutor extends OThreadPoolExecutorWithLogging
A ThreadPoolExecutor that scales the pool beyond the core pool size, even if an unbounded work queue is used.
  • Constructor Details

    • ScalingThreadPoolExecutor

      public ScalingThreadPoolExecutor(int corePoolSize, int maxPoolSize, long timeout, TimeUnit timeoutUnit, int queueCapacity, com.orientechnologies.common.thread.NamedThreadFactory namedThreadFactory)
    • ScalingThreadPoolExecutor

      public ScalingThreadPoolExecutor(int corePoolSize, int maxPoolSize, long timeout, TimeUnit timeoutUnit, int targetQueueCapacity, int maxQueueCapacity, com.orientechnologies.common.thread.NamedThreadFactory namedThreadFactory)
  • Method Details