Thread Pool Executor Monitoring Requirement
问题 In our production environments, we are using Thread Pool Executor to execute runntable task. I need to develop a Thread pool Heartbeat a monitoring system for Thread pool Executor Service: Every 60 seconds, the requirement is to collect following statistic about the Thread Pooled Executor: 1) size of the thread pool 2) length of queue waiting for a thread (a duration or time task waited in blocking queue before thread executed ) 3) Average wait time in queue during the last heartbeat interval