Class FixedDelayBackoffStrategy

java.lang.Object
software.amazon.awssdk.core.retry.backoff.FixedDelayBackoffStrategy
All Implemented Interfaces:
BackoffStrategy

public final class FixedDelayBackoffStrategy extends Object implements BackoffStrategy
Simple backoff strategy that always uses a fixed delay for the delay before the next retry attempt.
  • Method Details

    • computeDelayBeforeNextRetry

      public Duration computeDelayBeforeNextRetry(RetryPolicyContext context)
      Description copied from interface: BackoffStrategy
      Compute the delay before the next retry request. This strategy is only consulted when there will be a next retry.
      Specified by:
      computeDelayBeforeNextRetry in interface BackoffStrategy
      Parameters:
      context - Context about the state of the last request and information about the number of requests made.
      Returns:
      Amount of time in milliseconds to wait before the next attempt. Must be non-negative (can be zero).
    • create

      public static FixedDelayBackoffStrategy create(Duration fixedBackoff)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object