public class ExponentialBackoff extends java.lang.Object implements BackoffStrategy
| Constructor and Description |
|---|
ExponentialBackoff(Timeout initial,
double exponent) |
ExponentialBackoff(Timeout initial,
double exponent,
Timeout maximum) |
| Modifier and Type | Method and Description |
|---|---|
long |
getBackoff(int attempt)
Get the time to wait after the
attemptth failure |
public ExponentialBackoff(Timeout initial, double exponent)
public long getBackoff(int attempt)
BackoffStrategyattemptth failuregetBackoff in interface BackoffStrategyattempt - the attempt number (starting at 1)Copyright © 2014. All Rights Reserved.