public class ExponentialBackoff extends Object implements BackoffStrategy
| Constructor and Description |
|---|
ExponentialBackoff(Timeout initial,
double exponent) |
ExponentialBackoff(Timeout initial,
double exponent,
Timeout maximum) |
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.