Interface RetryOutcome


public interface RetryOutcome
Outcome of an unsuccessful contextual Retry invocation.
  • Method Details

    • termination

      Reason the retry invocation terminated.
      Returns:
      termination reason
    • attempts

      int attempts()
      Number of completed invocation attempts.
      Returns:
      number of completed attempts
    • elapsedTime

      Duration elapsedTime()
      Time elapsed since the retry invocation started.
      Returns:
      elapsed time
    • lastDelay

      Duration lastDelay()
      Delay preceding the last completed invocation attempt.

      The value is Duration.ZERO if only the initial attempt completed.

      Returns:
      delay preceding the last completed attempt
    • lastThrowable

      Optional<Throwable> lastThrowable()
      Throwable from the last completed invocation attempt.
      Returns:
      last invocation throwable