public boolean rescheduleIfPeriodic() {
            if (periodic()) {
                nextExecution.addAndGet(period);
                return true;
            } else {
                return false;
            }
        }
If this task is periodic, reschedule it and return true. Otherwise, do nothing and return false.
server-common/src/test/java/org/apache/kafka/server/util/MockScheduler.java