Class Executor

All Implemented Interfaces:
AutoCloseable, Executor, ExecutorService

public class Executor extends AbstractExecutorService
  • Constructor Details

    • Executor

      public Executor(ThreadFactory threadFactory, BlockingQueue queue, Executor.Controller controller, int initialThreadCount, EnumSet<Stats.Metric> metrics, long samplePeriod, long controlPeriod, TimeUnit unit)
      Parameters:
      threadFactory - the ThreadFactory used by the executor
      queue - the queue that holds Runnable objects waiting to be executed
      controller - the Controller object that updates the thread count
      initialThreadCount - the number of threads that the executor will begin with
      metrics - the metrics that will be collected and delivered to the controller
      samplePeriod - the period at which the executor's state will be sampled
      controlPeriod - the period at which the controller will be invoked with the gathered statistics
      unit - the time unit for the #samplePeriod and #controlPeriod
  • Method Details