Interface RetryHandler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RetryHandler
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handle(Throwable cause, int retriesAttempted)
    Handle a retry.
  • Method Details

    • handle

      void handle(Throwable cause, int retriesAttempted)
      Handle a retry.
      Parameters:
      cause - the cause of the retry
      retriesAttempted - the number of retries attempted so far