Interface ThreadPool

    • Method Detail

      • join

        void join()
           throws java.lang.InterruptedException
        Blocks until the thread pool is stopped.
        Throws:
        java.lang.InterruptedException - if thread was interrupted
      • getThreads

        @ManagedAttribute("number of threads in pool")
        int getThreads()
        Returns:
        The total number of threads currently in the pool
      • getIdleThreads

        @ManagedAttribute("number of idle threads in pool")
        int getIdleThreads()
        Returns:
        The number of idle threads in the pool
      • isLowOnThreads

        @ManagedAttribute("indicates the pool is low on available threads")
        boolean isLowOnThreads()
        Returns:
        True if the pool is low on threads