RetryLinearRetry Class
- java.
lang. Object - RetryPolicyFactory
- RetryPolicy
- com.
microsoft. azure. storage. RetryLinearRetry
- com.
public class RetryLinearRetry extends RetryPolicy implements RetryPolicyFactory
Represents a retry policy that performs a specified number of retries, using a specified fixed time interval between retries.
This class extends the RetryPolicy class and implements the RetryPolicyFactory interface.
Constructor Summary
Constructor | Description |
---|---|
RetryLinearRetry() |
Creates an instance of the class. |
RetryLinearRetry(final int deltaBackoff, final int maxAttempts) |
Creates an instance of the class using the specified delta backoff and maximum 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
RetryLinearRetry
public RetryLinearRetry()
Creates an instance of the class.
RetryLinearRetry
public RetryLinearRetry(final int deltaBackoff, final int maxAttempts)
Creates an instance of the class using the specified delta backoff and maximum retry attempts.
Parameters:
Method Details
createInstance
public RetryPolicy createInstance(final OperationContext opContext)
Generates a new retry policy for the current request attempt.
Overrides:
RetryLinearRetry.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