Interface BackOff
- All Known Implementing Classes:
ConstantBackOff,CustomBackOff,ExponentialBackOff,FibonacciBackOff
public interface BackOff
Computes the delay value.
For each invocation of the retry strategy, one instance is obtained and used for computing all delay values. This instance may be used from multiple threads, but is not used concurrently. That is, implementations can hold state, but must take care of its visibility across threads.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
ZERO
-
-
Method Details
-
getInMillis
- Parameters:
cause- exception causing the retry attempt before which the delay occurs- Returns:
- non-negative number
-