Package com.azure.core.http.policy
Class FixedDelayOptions
java.lang.Object
com.azure.core.http.policy.FixedDelayOptions
The configuration for a fixed-delay retry that has a fixed delay duration between each retry attempt.
-
Constructor Summary
ConstructorDescriptionFixedDelayOptions
(int maxRetries, Duration delay) Creates an instance ofFixedDelayOptions
. -
Method Summary
Modifier and TypeMethodDescriptiongetDelay()
Gets the max retry attempts that can be made.int
Gets the max retry attempts that can be made.
-
Constructor Details
-
FixedDelayOptions
Creates an instance ofFixedDelayOptions
.- Parameters:
maxRetries
- The max number of retry attempts that can be made.delay
- The fixed delay duration between retry attempts.- Throws:
IllegalArgumentException
- IfmaxRetries
is negative.NullPointerException
- Ifdelay
isnull
.
-
-
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
Gets the max retry attempts that can be made.- Returns:
- The max retry attempts that can be made.
-