Package com.azure.core.http.policy
Class RetryOptions
java.lang.Object
com.azure.core.http.policy.RetryOptions
The configuration for retries.
-
Constructor Summary
ConstructorsConstructorDescriptionRetryOptions(ExponentialBackoffOptions exponentialBackoffOptions) Creates a new instance that usesExponentialBackoffOptions.RetryOptions(FixedDelayOptions fixedDelayOptions) Creates a new instance that usesFixedDelayOptions. -
Method Summary
Modifier and TypeMethodDescriptionGets the configuration for exponential backoff if configured.Gets the configuration for exponential backoff if configured.
-
Constructor Details
-
RetryOptions
Creates a new instance that usesExponentialBackoffOptions.- Parameters:
exponentialBackoffOptions- TheExponentialBackoffOptions.
-
RetryOptions
Creates a new instance that usesFixedDelayOptions.- Parameters:
fixedDelayOptions- TheFixedDelayOptions.
-
-
Method Details
-
getExponentialBackoffOptions
Gets the configuration for exponential backoff if configured.- Returns:
- The
ExponentialBackoffOptions.
-
getFixedDelayOptions
Gets the configuration for exponential backoff if configured.- Returns:
- The
FixedDelayOptions.
-