public synchronized int getDelayQueueSize() {
        return queue.size();
    }
Returns the number of stanzas that are currently in the delay queue.

@return the number of delayed stanzas.
xmppserver/src/main/java/org/jivesoftware/openfire/csi/CsiManager.java