RetryNoRetry Class
- java.
lang. Object - RetryPolicyFactory
- RetryPolicy
- com.
microsoft. azure. storage. RetryNoRetry
- com.
public class RetryNoRetry extends RetryPolicy implements RetryPolicyFactory
Represents a retry policy that performs no retries.
This class extends the RetryPolicy class and implements the RetryPolicyFactory interface.
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. |
Retry |
getInstance()
Returns the static instance of a no retry policy. |
Inherited Members
Method Details
createInstance
public RetryPolicy createInstance(final OperationContext opContext)
Generates a new retry policy for the current request attempt.
Overrides:
RetryNoRetry.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.getInstance
public static RetryNoRetry getInstance()
Returns the static instance of a no retry policy.
Returns:
RetryNoRetry
object that represents a no retry policy.Applies to
Azure SDK for Java