Interface RetryContext<T>

Type Parameters:
T - Application context type
All Superinterfaces:
IterationContext<T>
All Known Implementing Classes:
DefaultContext

public interface RetryContext<T> extends IterationContext<T>
Context provided to retry predicate Retry.onlyIf(java.util.function.Predicate) and the retry callback Retry.doOnRetry(java.util.function.Consumer).
  • Method Details

    • exception

      Throwable exception()
      Returns the exception from the last iteration.
      Returns:
      exception that resulted in retry