Class BackOffDelayPolicy.FixedWithInitialDelayBackOffPolicy

java.lang.Object
com.rabbitmq.stream.BackOffDelayPolicy.FixedWithInitialDelayBackOffPolicy
All Implemented Interfaces:
BackOffDelayPolicy
Enclosing interface:
BackOffDelayPolicy

public static final class BackOffDelayPolicy.FixedWithInitialDelayBackOffPolicy extends Object implements BackOffDelayPolicy
  • Method Details

    • delay

      public Duration delay(int recoveryAttempt)
      Description copied from interface: BackOffDelayPolicy
      Returns the delay to use for a given attempt.

      The policy can return the TIMEOUT constant to indicate that the task has reached a timeout.

      Specified by:
      delay in interface BackOffDelayPolicy
      Parameters:
      recoveryAttempt -
      Returns:
      the delay, TIMEOUT if the task should stop being retried
    • toString

      public String toString()
      Overrides:
      toString in class Object