public void extend(long delayInMs) {
    if (delayInMs <= 0) {
      throw new IllegalArgumentException("delayInMs must be greater than 0");
    }
    cancel();

    // Reschedule the task with the new delay
    logger.info("Restarting timer with a delay of {} seconds", delayInMs / 1000);
    scheduleTask(delayInMs);
  }
Extends the timer by the specified time in milliseconds.
@param delayInMs The time in milliseconds to extend the timer.
ambry-utils/src/main/java/com/github/ambry/utils/ExtendableTimer.java