Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5, 1.5.1, 1.5.2, 1.5.3, 1.5.4
Description
I would like to be able to determine the number of threads waiting to obtain an object from the pool for monitoring purposes. This would be most applicable when the WHEN_EXHAUSTED_BLOCK option is used. I propose the following method:
/**
- Return the number of threads currently waiting for an object from this pool.
* - @return the number of threads currently waiting for an object from this pool
*/
public synchronized int getNumWaiters()
{ return _allocateQueue.size(); }Attachments
Issue Links
- is related to
-
POOL-172 Add JMX (MBean) management and monitoring
- Closed