added QueuedThreadPool.getQueueSize()
This commit is contained in:
parent
f7240fee38
commit
ed1555e0c4
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue