summary:"The `FixedDelayOptions` class provides configuration options for the <xref uid=\"com.azure.core.http.policy.FixedDelay\" data-throw-if-not-resolved=\"false\" data-raw-source=\"FixedDelay\"></xref> retry strategy."
summary:"Creates an instance of <xref uid=\"com.azure.core.http.policy.FixedDelayOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"FixedDelayOptions\"></xref>."
parameters:
- description:"The max number of retry attempts that can be made."
desc:"Creates an instance of <xref uid=\"com.azure.core.http.policy.FixedDelayOptions\" data-throw-if-not-resolved=\"false\" data-raw-source=\"FixedDelayOptions\"></xref>."
desc:"The `FixedDelayOptions` class provides configuration options for the <xref uid=\"com.azure.core.http.policy.FixedDelay\" data-throw-if-not-resolved=\"false\" data-raw-source=\"FixedDelay\"></xref> retry strategy. This strategy uses a fixed delay duration between each retry attempt.\n\nThis class is useful when you need to customize the behavior of the fixed delay retry strategy. It allows you to specify the maximum number of retry attempts and the delay duration between each attempt.\n\n**Code sample:**\n\nIn this example, a `FixedDelayOptions` is created and used to configure a `FixedDelay` retry strategy. The strategy is then used in a `RetryPolicy` which can then be added to the pipeline. For a request then sent by the pipeline, if the server responds with a transient error, the request will be retried with a fixed delay between each attempt.\n\n```java\nFixedDelayOptions options = new FixedDelayOptions(3, Duration.ofSeconds(1));\n FixedDelay retryStrategy = new FixedDelay(options);\n```"