java.lang.Object
software.amazon.awssdk.retries.api.internal.backoff.Immediately
All Implemented Interfaces:
BackoffStrategy

@SdkInternalApi public final class Immediately extends Object implements BackoffStrategy
Strategy that do not back off: retry immediately.
  • Constructor Details

    • Immediately

      public Immediately()
  • Method Details

    • computeDelay

      public Duration computeDelay(int attempt)
      Description copied from interface: BackoffStrategy
      Compute the amount of time to wait before the provided attempt number is executed.
      Specified by:
      computeDelay in interface BackoffStrategy
      Parameters:
      attempt - The attempt to compute the delay for, starting at one.
    • toString

      public String toString()
      Overrides:
      toString in class Object