public final class RetryExponentialRetry extends RetryPolicy implements RetryPolicyFactory
RetryPolicy class and implements the
 RetryPolicyFactory interface.DEFAULT_CLIENT_BACKOFF, DEFAULT_CLIENT_RETRY_COUNT, DEFAULT_MAX_BACKOFF, DEFAULT_MIN_BACKOFF| Constructor and Description | 
|---|
RetryExponentialRetry()
Creates an instance of the  
RetryExponentialRetry class. | 
RetryExponentialRetry(int deltaBackoff,
                     int maxAttempts)
Creates an instance of the  
RetryExponentialRetry class using the specified delta backoff and maximum
 retry attempts. | 
RetryExponentialRetry(int minBackoff,
                     int deltaBackoff,
                     int maxBackOff,
                     int maxAttempts)
Creates an instance of the  
RetryExponentialRetry class using the specified minimum, maximum, and
 delta backoff amounts, and maximum number of retry attempts. | 
| 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. 
 | 
public RetryExponentialRetry()
RetryExponentialRetry class.public RetryExponentialRetry(int deltaBackoff,
                     int maxAttempts)
RetryExponentialRetry class using the specified delta backoff and maximum
 retry attempts.deltaBackoff - The backoff interval, in milliseconds, between retries.maxAttempts - The maximum number of retry attempts.public RetryExponentialRetry(int minBackoff,
                     int deltaBackoff,
                     int maxBackOff,
                     int maxAttempts)
RetryExponentialRetry class using the specified minimum, maximum, and
 delta backoff amounts, and maximum number of retry attempts.minBackoff - The minimum backoff interval, in milliseconds, between retries.deltaBackoff - The backoff interval, in milliseconds, between retries.maxBackOff - The maximum backoff interval, in milliseconds, between retries.maxAttempts - The maximum retry attempts, in milliseconds, between retries.public RetryPolicy createInstance(OperationContext opContext)
createInstance in interface RetryPolicyFactoryopContext - 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 RetryPolicyretryContext - 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 Microsoft Corporation 
* 
* Licensed under the Apache License, Version 2.0 (the "License"); 
* you may not use this file except in compliance with the License. 
* You may obtain a copy of the License at 
* http://www.apache.org/licenses/LICENSE-2.0 
* 
* Unless required by applicable law or agreed to in writing, software 
* distributed under the License is distributed on an "AS IS" BASIS, 
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
* See the License for the specific language governing permissions and 
* limitations under the License. 
*/