code: private void safeCustomDelay(PollingStrategyContext pollingStrategyContext) {
          try {
              pollingStrategy.getDelayStrategy().delayBeforeNextRetry(pollingStrategyContext);
          } catch (InterruptedException e) {
              Thread.currentThread().interrupt();
              throw new RuntimeException(e);
          }
      }
docs: Calls the custom delay strategy to control the sleep time
  
  @param pollingStrategyContext Provides the polling strategy context.
  Includes request and number of retries
  attempted so far.