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:
    DefaultRetryHandler, TopologyRecoveryRetryHandlerBuilder
    • Method Detail

      • backoff

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