Interface ThreadPoolMBean

  • All Known Subinterfaces:
    BasicThreadPoolMBean
    All Known Implementing Classes:
    BasicThreadPool

    public interface ThreadPoolMBean
    Management interface for the thread pool.
    Version:
    $Revision$
    • Method Detail

      • getName

        java.lang.String getName()
        Get the thread pool name
        Returns:
        the thread pool name
      • setName

        void setName​(java.lang.String name)
        Set the thread pool name
        Parameters:
        name - the name
      • getPoolNumber

        int getPoolNumber()
        Get the internal pool number
        Returns:
        the internal pool number
      • getMinimumPoolSize

        int getMinimumPoolSize()
        Get the minimum pool size
        Returns:
        the minimum pool size
      • setMinimumPoolSize

        void setMinimumPoolSize​(int size)
        Set the minimum pool size
        Parameters:
        size - the minimum pool size
      • getMaximumPoolSize

        int getMaximumPoolSize()
        Get the maximum pool size
        Returns:
        the maximum pool size
      • setMaximumPoolSize

        void setMaximumPoolSize​(int size)
        Set the maximum pool size
        Parameters:
        size - the maximum pool size
      • getPoolSize

        int getPoolSize()
        Get the current pool size
        Returns:
        the current pool size
      • getInstance

        ThreadPool getInstance()
        Returns:
        the instance
      • stop

        void stop()
        Stop the thread pool