public static boolean next ( Sleeper sleeper , BackOff backOff ) throws InterruptedException , IOException { long backOffTime = backOff . nextBackOffMillis ( ) ; if ( backOffTime == BackOff . STOP ) { return false ; } sleeper . sleep ( backOffTime ) ; return true ; }
Runs the next iteration of the back - off policy and returns whether to continue to retry the operation .