LinearRetryPolicyFilter class
Constructors
Linear |
Creates a new LinearRetryPolicyFilter instance. Example
|
Properties
DEFAULT_CLIENT_RETRY_COUNT | Represents the default client retry count. |
DEFAULT_CLIENT_RETRY_INTERVAL | Represents the default client retry interval, in milliseconds. |
retry |
|
retry |
Methods
handle(Request |
|
should |
Determines if the operation should be retried and how long to wait until the next retry. * |
Constructor Details
LinearRetryPolicyFilter(number, number)
Creates a new LinearRetryPolicyFilter instance.
Example
var azure = require('azure-storage');
var retryOperations = new azure.LinearRetryPolicyFilter();
var blobService = azure.createBlobService().withFilter(retryOperations)
new LinearRetryPolicyFilter(retryCount?: number, retryInterval?: number)
Parameters
- retryCount
-
number
The client retry count.
- retryInterval
-
number
The client retry interval, in milliseconds.
Property Details
DEFAULT_CLIENT_RETRY_COUNT
Represents the default client retry count.
static DEFAULT_CLIENT_RETRY_COUNT: number
Property Value
number
DEFAULT_CLIENT_RETRY_INTERVAL
Represents the default client retry interval, in milliseconds.
static DEFAULT_CLIENT_RETRY_INTERVAL: number
Property Value
number
retryCount
retryCount: number
Property Value
number
retryInterval
retryInterval: number
Property Value
number
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
shouldRetry(number, IRetryRequestOptions)
Determines if the operation should be retried and how long to wait until the next retry.
*
function shouldRetry(statusCode: number, retryData: IRetryRequestOptions): { retryInterval: number, retryable: boolean }
Parameters
- statusCode
-
number
The HTTP status code. *
- retryData
-
azure-storage.export=.common.filters.retrypolicyfilter.RetryPolicyFilter.IRetryRequestOptions
The retry data. *
Returns
{ retryInterval: number, retryable: boolean }
Information about whether the operation qualifies for a retry and the retryInterval.
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