Interface ThreadPoolMBean
- All Known Implementing Classes:
ThreadPool
public interface ThreadPoolMBean
Exposes thread-pool metrics via JMX.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of idle threads.intReturns the number of jobs processed by this pool.intReturns the maximum number of threads allowed in the pool.intReturns the number of pending jobs.intReturns the number of running threads in the pool.
-
Method Details
-
getJobCount
int getJobCount()Returns the number of jobs processed by this pool.- Returns:
- number of processed jobs
-
getPoolSize
-
getMaxPoolSize
int getMaxPoolSize()Returns the maximum number of threads allowed in the pool.- Returns:
- maximum pool size
-
getIdleCount
-
getPendingCount
-