public int getThreadCount() {
        return executor.getPoolSize();
    }
Returns the number of currently active worker threads in the channel. This value
will always fall in between the min a max thread count.

@return the current number of worker threads.
xmppserver/src/main/java/org/jivesoftware/openfire/Channel.java