public class ExponentialBackoffRetry extends Object implements RetrySleeper
Constructor and Description |
---|
ExponentialBackoffRetry() |
ExponentialBackoffRetry(long baseSleepTimeMs) |
Modifier and Type | Method and Description |
---|---|
void |
sleep(int retryCount)
Sleep based on the given retry count (0 based)
|
public ExponentialBackoffRetry()
public ExponentialBackoffRetry(long baseSleepTimeMs)
public void sleep(int retryCount) throws InterruptedException
RetrySleeper
sleep
in interface RetrySleeper
retryCount
- 0 based retry countInterruptedException
- if interruptedCopyright © 2020. All rights reserved.