Interface BackoffPolicy

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 BackoffPolicy
Backoff policy for topology recovery retry attempts.
Since:
5.4.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    backoff(int attemptNumber)
    Wait depending on the current attempt number (1, 2, 3, etc)
  • Method Details

    • backoff

      void backoff(int attemptNumber) throws InterruptedException
      Wait depending on the current attempt number (1, 2, 3, etc)
      Parameters:
      attemptNumber - current attempt number
      Throws:
      InterruptedException