code: private void scheduleAlarm() {
      if (wasCalledViaHTTP || retry >= maxNumberOfRetries) {
        // No alarm necessary anymore.
        LOG.log(Level.INFO,
            "Not scheduling additional alarms after {0} out of max {1} retries. The HTTP handles was called: ",
            new Object[] {retry, maxNumberOfRetries, wasCalledViaHTTP});
        return;
      }
  
      // Scheduling an alarm will prevent the clock from going idle.
      ++retry;
      clock.scheduleAlarm(alarmInterval, alarmHandler);
    }
docs: Schedules an alarm, if needed.
  <p>
  The alarm will prevent the Clock from going idle. This gives the .NET Client time to make a call to this HTTP
  handler.