boolean isTerminated() {
        return taskExecutor.isTerminated();
    }
Advances the clock if there is an expired bucket. If there isn't any expired bucket when called,
waits up to timeoutMs before giving up.
server-common/src/main/java/org/apache/kafka/server/util/timer/SystemTimer.java