public void pause(long timeout, TimeUnit unit) throws InterruptedException {
        if (shutdownInitiated.await(timeout, unit))
            log.trace("shutdownInitiated latch count reached zero. Shutdown called.");
    }
Causes the current thread to wait until the shutdown is initiated,
or the specified waiting time elapses.

@param timeout wait time in units.
@param unit    TimeUnit value for the wait time.
server-common/src/main/java/org/apache/kafka/server/util/ShutdownableThread.java