public interface WaitStrategy
| Modifier and Type | Method and Description |
|---|---|
long |
computeSleepTime(int previousAttemptNumber,
long delaySinceFirstAttemptInMillis)
Returns the time, in milliseconds, to sleep before retrying.
|
long computeSleepTime(int previousAttemptNumber,
long delaySinceFirstAttemptInMillis)
previousAttemptNumber - the number, starting from 1, of the previous (failed) attemptdelaySinceFirstAttemptInMillis - the delay since the start of the first attempt, in milliseconds