public int getMaxThreadCount() {
        return executor.getMaximumPoolSize();
    }
Returns the max number of threads the channel will use for processing messages. The
channel will automatically allocate new worker threads as the queue load grows, up to the
defined maximum. This lets the channel meet higher concurrency needs, but prevents too
many threads from being allocated, which decreases overall system performance.

@return the max number of threads that can be used by the channel.
xmppserver/src/main/java/org/jivesoftware/openfire/Channel.java