Class MonitoringThreadPoolExecutor

All Implemented Interfaces:
Executor, ExecutorService

public class MonitoringThreadPoolExecutor extends ThreadPoolExecutor
  • Constructor Details

    • MonitoringThreadPoolExecutor

      public MonitoringThreadPoolExecutor(int maximumPoolSize, long keepAliveTime, TimeUnit unit)
    • MonitoringThreadPoolExecutor

      public MonitoringThreadPoolExecutor(int maximumPoolSize, long keepAliveTime, TimeUnit unit, RejectedExecutionHandler handler)
  • Method Details

    • reset

      public void reset()
    • getTasks

      public long getTasks()
    • getMaxTaskLatency

      public long getMaxTaskLatency()
    • getAverageTaskLatency

      public long getAverageTaskLatency()
    • getMaxQueueLatency

      public long getMaxQueueLatency()
    • getAverageQueueLatency

      public long getAverageQueueLatency()
    • getMaxQueueSize

      public int getMaxQueueSize()
    • getMaxActiveThreads

      public int getMaxActiveThreads()
    • execute

      public void execute(Runnable task)
      Specified by:
      execute in interface Executor
      Overrides:
      execute in class ThreadPoolExecutor