Interface RetryOutcome
public interface RetryOutcome
Outcome of an unsuccessful contextual
Retry invocation.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumReason a contextual retry invocation terminated. -
Method Summary
Modifier and TypeMethodDescriptionintattempts()Number of completed invocation attempts.Time elapsed since the retry invocation started.Delay preceding the last completed invocation attempt.Throwable from the last completed invocation attempt.Reason the retry invocation terminated.
-
Method Details
-
termination
RetryOutcome.Termination termination()Reason the retry invocation terminated.- Returns:
- termination reason
-
attempts
int attempts()Number of completed invocation attempts.- Returns:
- number of completed attempts
-
elapsedTime
-
lastDelay
Duration lastDelay()Delay preceding the last completed invocation attempt.The value is
Duration.ZEROif only the initial attempt completed.- Returns:
- delay preceding the last completed attempt
-
lastThrowable
-