@Override
        public int compareTo(Delayed o) {
            return Long.compare(getDelay(TimeUnit.MILLISECONDS), o.getDelay(TimeUnit.MILLISECONDS));
        }
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