Package com.azure.core.http.policy
Class RetryOptions
- java.lang.Object
-
- com.azure.core.http.policy.RetryOptions
-
public class RetryOptions extends Object
The configuration for retries.
-
-
Constructor Summary
Constructors Constructor Description RetryOptions(ExponentialBackoffOptions exponentialBackoffOptions)Creates a new instance that usesExponentialBackoffOptions.RetryOptions(FixedDelayOptions fixedDelayOptions)Creates a new instance that usesFixedDelayOptions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExponentialBackoffOptionsgetExponentialBackoffOptions()Gets the configuration for exponential backoff if configured.FixedDelayOptionsgetFixedDelayOptions()Gets the configuration for exponential backoff if configured.
-
-
-
Constructor Detail
-
RetryOptions
public RetryOptions(ExponentialBackoffOptions exponentialBackoffOptions)
Creates a new instance that usesExponentialBackoffOptions.- Parameters:
exponentialBackoffOptions- TheExponentialBackoffOptions.
-
RetryOptions
public RetryOptions(FixedDelayOptions fixedDelayOptions)
Creates a new instance that usesFixedDelayOptions.- Parameters:
fixedDelayOptions- TheFixedDelayOptions.
-
-
Method Detail
-
getExponentialBackoffOptions
public ExponentialBackoffOptions getExponentialBackoffOptions()
Gets the configuration for exponential backoff if configured.- Returns:
- The
ExponentialBackoffOptions.
-
getFixedDelayOptions
public FixedDelayOptions getFixedDelayOptions()
Gets the configuration for exponential backoff if configured.- Returns:
- The
FixedDelayOptions.
-
-