RetryExponentialRetry Class
- java.
lang. Object - RetryPolicyFactory
- RetryPolicy
- com.
microsoft. azure. storage. RetryExponentialRetry
- com.
public class RetryExponentialRetry extends RetryPolicy implements RetryPolicyFactory
Represents a retry policy that performs a specified number of retries, using a randomized exponential backoff scheme to determine the interval between retries.
This class extends the RetryPolicy class and implements the RetryPolicyFactory interface.
Constructor Summary
Constructor | Description |
---|---|
RetryExponentialRetry() |
Creates an instance of the class. |
RetryExponentialRetry(final int deltaBackoff, final int maxAttempts) |
Creates an instance of the class using the specified delta backoff and maximum retry attempts. |
RetryExponentialRetry(final int minBackoff, final int deltaBackoff, final int maxBackOff, final int maxAttempts) |
Creates an instance of the class using the specified minimum, maximum, and delta backoff amounts, and maximum number of retry attempts. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Retry |
createInstance(final OperationContext opContext)
Generates a new retry policy for the current request attempt. |
Retry |
evaluate(RetryContext retryContext, OperationContext operationContext)
Determines whether the operation should be retried and specifies the interval until the next retry. |
Inherited Members
Constructor Details
RetryExponentialRetry
public RetryExponentialRetry()
Creates an instance of the class.
RetryExponentialRetry
public RetryExponentialRetry(final int deltaBackoff, final int maxAttempts)
Creates an instance of the class using the specified delta backoff and maximum retry attempts.
Parameters:
RetryExponentialRetry
public RetryExponentialRetry(final int minBackoff, final int deltaBackoff, final int maxBackOff, final int maxAttempts)
Creates an instance of the class using the specified minimum, maximum, and delta backoff amounts, and maximum number of retry attempts.
Parameters:
Method Details
createInstance
public RetryPolicy createInstance(final OperationContext opContext)
Generates a new retry policy for the current request attempt.
Overrides:
RetryExponentialRetry.createInstance(final OperationContext opContext)Parameters:
Returns:
evaluate
public RetryInfo evaluate(RetryContext retryContext, OperationContext operationContext)
Determines whether the operation should be retried and specifies the interval until the next retry.
Parameters:
Returns:
null
, the operation will not be retried.Applies to
Azure SDK for Java
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기