public int getQueueSize() {
        return executor.getQueue().size();
    }
Returns the current number of ChannelMessage objects waiting to be processed by
the channel.

@return the current number of elements in the processing queue.
xmppserver/src/main/java/org/jivesoftware/openfire/Channel.java