Interface MutableRetryState
- All Superinterfaces:
RetryState
- All Known Implementing Classes:
CircuitBreakerRetry
Mutable retry state that can calculate the next retry delay.
- Since:
- 1.0
- Author:
- graemerocher
-
Method Summary
Modifier and TypeMethodDescriptionlongReturns the millisecond value for the next delay.Methods inherited from interface RetryState
canRetry, close, currentAttempt, getCapturedException, getDelay, getJitter, getMaxAttempts, getMaxDelay, getMultiplier, getOverallDelay, getRetryPredicate, open
-
Method Details
-
nextDelay
long nextDelay()Returns the millisecond value for the next delay.- Returns:
- The next delay in milliseconds
-