@Override
    public int getQueuedTaskCount() {
        return delegate.getQueue().size();
    }
Returns the number of tasks that are currently waiting to be executed by the delegate executor.

@return the task queue size
xmppserver/src/main/java/org/jivesoftware/openfire/mbean/ThreadPoolExecutorDelegate.java