RequestRetryOptions Class
- java.
lang. Object - com.
azure. storage. common. policy. RequestRetryOptions
- com.
public final class RequestRetryOptions
Configuration options for RequestRetryPolicy.
Constructor Summary
Constructor | Description |
---|---|
RequestRetryOptions() |
Configures how the HttpPipeline should retry requests. |
RequestRetryOptions(RetryPolicyType retryPolicyType, Integer maxTries, Integer tryTimeoutInSeconds, Long retryDelayInMs, Long maxRetryDelayInMs, String secondaryHost) |
Configures how the HttpPipeline should retry requests. |
RequestRetryOptions(RetryPolicyType retryPolicyType, Integer maxTries, Duration tryTimeout, Duration retryDelay, Duration maxRetryDelay, String secondaryHost) |
Configures how the HttpPipeline should retry requests. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Request |
fromRetryOptions(RetryOptions retryOptions, Duration tryTimeout, String secondaryHost)
Creates new RequestRetryOptions from RetryOptions and let specify storage specific parameters. |
Duration | getMaxRetryDelay() |
long |
getMaxRetryDelayInMs()
Deprecated
Please use getTryTimeoutDuration()
|
int | getMaxTries() |
Duration | getRetryDelay() |
long |
getRetryDelayInMs()
Deprecated
Please use getTryTimeoutDuration()
|
String | getSecondaryHost() |
int |
getTryTimeout()
Deprecated
Please use getTryTimeoutDuration()
|
Duration | getTryTimeoutDuration() |
Methods inherited from java.lang.Object
Constructor Details
RequestRetryOptions
public RequestRetryOptions()
Configures how the HttpPipeline should retry requests.
RequestRetryOptions
public RequestRetryOptions(RetryPolicyType retryPolicyType, Integer maxTries, Integer tryTimeoutInSeconds, Long retryDelayInMs, Long maxRetryDelayInMs, String secondaryHost)
Configures how the HttpPipeline should retry requests.
Parameters:
4
.
4ms
when retryPolicyType
is EXPONENTIAL and 30ms
when retryPolicyType
is FIXED.
120ms
.
RequestRetryOptions
public RequestRetryOptions(RetryPolicyType retryPolicyType, Integer maxTries, Duration tryTimeout, Duration retryDelay, Duration maxRetryDelay, String secondaryHost)
Configures how the HttpPipeline should retry requests.
Parameters:
4
.
4s
when retryPolicyType
is EXPONENTIAL and 30s
when retryPolicyType
is FIXED.
120s
.
Method Details
fromRetryOptions
public static RequestRetryOptions fromRetryOptions(RetryOptions retryOptions, Duration tryTimeout, String secondaryHost)
Creates new RequestRetryOptions from RetryOptions and let specify storage specific parameters.
Parameters:
Returns:
getMaxRetryDelay
public Duration getMaxRetryDelay()
Returns:
getMaxRetryDelayInMs
@Deprecated
public long getMaxRetryDelayInMs()
Deprecated
Returns:
getMaxTries
public int getMaxTries()
Returns:
getRetryDelay
public Duration getRetryDelay()
Returns:
getRetryDelayInMs
@Deprecated
public long getRetryDelayInMs()
Deprecated
Returns:
getSecondaryHost
public String getSecondaryHost()
Returns:
getTryTimeout
@Deprecated
public int getTryTimeout()
Deprecated
Returns:
getTryTimeoutDuration
public Duration getTryTimeoutDuration()
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for