private void safeCustomDelay ( PollingStrategyContext pollingStrategyContext ) { try { pollingStrategy . getDelayStrategy ( ) . delayBeforeNextRetry ( pollingStrategyContext ) ; } catch ( InterruptedException e ) { Thread . currentThread ( ) . interrupt ( ) ; throw new RuntimeException ( e ) ; } }
Calls the custom delay strategy to control the sleep time