RetryPolicyFilter interface
- Extends
-
azure-storage.export=.common.filters.retrypolicyfilter.RetryPolicyFilter.IRetryPolicy
Properties
retry |
|
retry |
Methods
constructor(number, number) | Creates a new RetryPolicyFilter instance. Example
|
should |
Inherited Methods
handle(Request |
Property Details
retryCount
retryCount: number
Property Value
number
retryInterval
retryInterval: number
Property Value
number
Method Details
constructor(number, number)
Creates a new RetryPolicyFilter instance.
Example
var azure = require('azure-storage');
var retryPolicy = new azure.RetryPolicyFilter();
retryPolicy.retryCount = 3;
retryPolicy.retryInterval = 3000;
retryPolicy.shouldRetry = function(statusCode, retryRequestOption) {
};
var blobService = azure.createBlobService().withFilter(retryPolicy);
function constructor(retryCount?: number, retryInterval?: number): RetryPolicyFilter
Parameters
- retryCount
-
number
The client retry count.
- retryInterval
-
number
The client retry interval, in milliseconds.
Returns
azure-storage.export=.common.filters.retrypolicyfilter.RetryPolicyFilter
shouldRetry(number, IRetryRequestOptions)
function shouldRetry(statusCode: number, retryData: IRetryRequestOptions): { retryInterval: number, retryable: boolean }
Parameters
- statusCode
-
number
- retryData
-
azure-storage.export=.common.filters.retrypolicyfilter.RetryPolicyFilter.IRetryRequestOptions
Returns
{ retryInterval: number, retryable: boolean }
Inherited Method Details
handle(RequestOptions, Next)
function handle(requestOptions: RequestOptions, next: Next)
Parameters
- requestOptions
-
azure-storage.export=.common.RequestOptions
- next
-
azure-storage.export=.common.filters.Next
Inherited From IRetryPolicy.handle
Azure SDK for JavaScript
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for