Interface ThreadPoolMBean

All Known Implementing Classes:
ThreadPool

public interface ThreadPoolMBean
Exposes thread-pool metrics via JMX.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of idle threads.
    int
    Returns the number of jobs processed by this pool.
    int
    Returns the maximum number of threads allowed in the pool.
    int
    Returns the number of pending jobs.
    int
    Returns the number of running threads in the pool.
  • Method Details

    • getJobCount

      Returns the number of jobs processed by this pool.
      Returns:
      number of processed jobs
    • getPoolSize

      Returns the number of running threads in the pool.
      Returns:
      current pool size
    • getMaxPoolSize

      Returns the maximum number of threads allowed in the pool.
      Returns:
      maximum pool size
    • getIdleCount

      Returns the number of idle threads.
      Returns:
      idle thread count
    • getPendingCount

      Returns the number of pending jobs.
      Returns:
      pending job count