Interface ThreadExecutorStatsMXBean
- All Known Implementing Classes:
ThreadExecutorStatsMXBeanImpl
public interface ThreadExecutorStatsMXBean
MXBean interface for thread executor statistic metrics.
- Author:
- Thomas Pantelis
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the active thread count.longReturns the completed task count.longReturns the current queue size.longReturns the current thread pool size.Returns the largest queue size, if available.longReturns the largest thread pool size.longReturns the maximum queue size.longReturns the maximum thread pool size.Returns the rejected task count, if available.longReturns the total task count.
-
Method Details
-
getCurrentThreadPoolSize
long getCurrentThreadPoolSize()Returns the current thread pool size. -
getLargestThreadPoolSize
long getLargestThreadPoolSize()Returns the largest thread pool size. -
getMaxThreadPoolSize
long getMaxThreadPoolSize()Returns the maximum thread pool size. -
getCurrentQueueSize
long getCurrentQueueSize()Returns the current queue size. -
getLargestQueueSize
Long getLargestQueueSize()Returns the largest queue size, if available. -
getMaxQueueSize
long getMaxQueueSize()Returns the maximum queue size. -
getActiveThreadCount
long getActiveThreadCount()Returns the active thread count. -
getCompletedTaskCount
long getCompletedTaskCount()Returns the completed task count. -
getTotalTaskCount
long getTotalTaskCount()Returns the total task count. -
getRejectedTaskCount
Long getRejectedTaskCount()Returns the rejected task count, if available.
-