Interface Invoker.Retried

Enclosing class:
Invoker
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 static interface Invoker.Retried
Callback for retry and notification operations. Even if the interface is throwing up "raw" exceptions, this handler gets the translated one.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onFailure(String text, IOException exception, int retries, boolean idempotent)
    Retry event in progress (before any sleep).
  • Method Details

    • onFailure

      void onFailure(String text, IOException exception, int retries, boolean idempotent)
      Retry event in progress (before any sleep).
      Parameters:
      text - text passed in to the retry() Call.
      exception - the caught (and possibly translated) exception.
      retries - number of retries so far
      idempotent - is the request idempotent.