Class FixedDelayOptions

java.lang.Object
com.azure.core.http.policy.FixedDelayOptions

public class FixedDelayOptions extends Object
The configuration for a fixed-delay retry that has a fixed delay duration between each retry attempt.
  • Constructor Details

    • FixedDelayOptions

      public FixedDelayOptions(int maxRetries, Duration delay)
      Creates an instance of FixedDelayOptions.
      Parameters:
      maxRetries - The max number of retry attempts that can be made.
      delay - The fixed delay duration between retry attempts.
      Throws:
      IllegalArgumentException - If maxRetries is negative.
      NullPointerException - If delay is null.
  • Method Details

    • getMaxRetries

      public int getMaxRetries()
      Gets the max retry attempts that can be made.
      Returns:
      The max retry attempts that can be made.
    • getDelay

      public Duration getDelay()
      Gets the max retry attempts that can be made.
      Returns:
      The max retry attempts that can be made.