@Override
        public long getDelay(TimeUnit unit) {
            return time.milliseconds() - nextExecution();
        }
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