@classmethod
def _worker_thread_count_effective(cls, count):
    """
        Given a worker thread count, adjust it
        to our global bounds.
        """
    return min(max(count, cls._WORKER_THREAD_COUNT_MIN), cls.
        _WORKER_THREAD_COUNT_MAX)
