public static boolean next(Sleeper sleeper, BackOff backOff) throws InterruptedException, IOException
If true
, it will call Sleeper.sleep(long)
with the specified number of
milliseconds from BackOff.nextBackOffMillis()
.
sleeper
- sleeperbackOff
- back-off policyBackOff.nextBackOffMillis()
did not return BackOff.STOP
InterruptedException
- if any thread has interrupted the current threadIOException
Copyright © 2011-2015 Google. All Rights Reserved.