Class ThreadExecutorStats


  • public class ThreadExecutorStats
    extends Object
    A bean class that holds various thread executor statistic metrics. This class is suitable for mapping to the MXBean CompositeDataSupport type;
    Author:
    Thomas Pantelis
    See Also:
    ThreadExecutorStatsMXBeanImpl
    • Constructor Detail

      • ThreadExecutorStats

        @ConstructorParameters({"activeThreadCount","currentThreadPoolSize","largestThreadPoolSize","maxThreadPoolSize","currentQueueSize","largestQueueSize","maxQueueSize","completedTaskCount","totalTaskCount","rejectedTaskCount"})
        public ThreadExecutorStats​(long activeThreadCount,
                                   long currentThreadPoolSize,
                                   long largestThreadPoolSize,
                                   long maxThreadPoolSize,
                                   long currentQueueSize,
                                   Long largestQueueSize,
                                   long maxQueueSize,
                                   long completedTaskCount,
                                   long totalTaskCount,
                                   Long rejectedTaskCount)
    • Method Detail

      • getActiveThreadCount

        public long getActiveThreadCount()
      • getCompletedTaskCount

        public long getCompletedTaskCount()
      • getRejectedTaskCount

        public Long getRejectedTaskCount()
      • getCurrentQueueSize

        public long getCurrentQueueSize()
      • getLargestQueueSize

        public Long getLargestQueueSize()
      • getMaxThreadPoolSize

        public long getMaxThreadPoolSize()
      • getTotalTaskCount

        public long getTotalTaskCount()
      • getLargestThreadPoolSize

        public long getLargestThreadPoolSize()
      • getMaxQueueSize

        public long getMaxQueueSize()
      • getCurrentThreadPoolSize

        public long getCurrentThreadPoolSize()