public interface RetryState
Retryable operation.| Modifier and Type | Method and Description | 
|---|---|
boolean | 
canRetry(java.lang.Throwable exception)
Should a retry attempt occur. 
 | 
default void | 
close(java.lang.Throwable exception)
Closes the  
RetryState. | 
int | 
currentAttempt()  | 
java.time.Duration | 
getDelay()  | 
int | 
getMaxAttempts()  | 
java.util.Optional<java.time.Duration> | 
getMaxDelay()  | 
java.util.OptionalDouble | 
getMultiplier()  | 
java.time.Duration | 
getOverallDelay()  | 
default RetryPredicate | 
getRetryPredicate()  | 
default void | 
open()
Opens the retry state. 
 | 
boolean canRetry(java.lang.Throwable exception)
exception - The errorint getMaxAttempts()
int currentAttempt()
java.util.OptionalDouble getMultiplier()
java.time.Duration getDelay()
java.time.Duration getOverallDelay()
java.util.Optional<java.time.Duration> getMaxDelay()
default RetryPredicate getRetryPredicate()
default void open()
default void close(@Nullable java.lang.Throwable exception)
RetryState.exception - An exception if an error occurred or null if the operation completed as expected