added QueuedThreadPool.getQueueSize()

This commit is contained in:
Greg Wilkins 2013-11-08 11:58:13 +11:00
parent f7240fee38
commit ed1555e0c4
1 changed files with 11 additions and 0 deletions

View File

@ -321,6 +321,17 @@ public class QueuedThreadPool extends AbstractLifeCycle implements SizedThreadPo
{
return _priority;
}
/**
* Get the size of the job queue.
*
* @return Number of jobs queued waiting for a thread
*/
@ManagedAttribute("Size of the job queue")
public int getQueueSize()
{
return _jobs.size();
}
/**
* Delegated to the named or anonymous Pool.