public final class RetryNoRetry extends RetryPolicy implements RetryPolicyFactory
RetryPolicy
class and implements the
RetryPolicyFactory
interface.DEFAULT_CLIENT_BACKOFF, DEFAULT_CLIENT_RETRY_COUNT, DEFAULT_MAX_BACKOFF, DEFAULT_MIN_BACKOFF, deltaBackoffIntervalInMs, lastPrimaryAttempt, lastSecondaryAttempt, maximumAttempts
Constructor and Description |
---|
RetryNoRetry() |
Modifier and Type | Method and Description |
---|---|
RetryPolicy |
createInstance(OperationContext opContext)
Generates a new retry policy for the current request attempt.
|
RetryInfo |
evaluate(RetryContext retryContext,
OperationContext operationContext)
Determines whether the operation should be retried and specifies the interval until the next retry.
|
static RetryNoRetry |
getInstance()
Returns the static instance of a no retry policy.
|
evaluateLastAttemptAndSecondaryNotFound, evaluateRetryInfo
public static RetryNoRetry getInstance()
RetryNoRetry
object that represents a no retry policy.public RetryPolicy createInstance(OperationContext opContext)
createInstance
in interface RetryPolicyFactory
opContext
- An OperationContext
object that represents the context for the current operation. This object
is used to track requests to the storage service, and to provide additional runtime information about
the operation.RetryPolicy
object that represents the retry policy for the current request attempt.public RetryInfo evaluate(RetryContext retryContext, OperationContext operationContext)
evaluate
in class RetryPolicy
retryContext
- A RetryContext
object that indicates the number of retries, last request's results, whether
the next retry should happen in the primary or secondary location, and specifies the location mode.operationContext
- An OperationContext
object for tracking the current operation.RetryInfo
object that indicates whether the next retry will happen in the primary or secondary
location, and specifies the location mode. If null
, the operation will not be retried.Copyright © 2019. All rights reserved.