Class: RetryPolicyFilter

RetryPolicyFilter

The RetryPolicyFilter allows you to retry operations,
using a custom retry policy. Users are responsible to
define the shouldRetry method.
To apply a filter to service operations, use withFilter
and specify the filter to be used when creating a service.


new RetryPolicyFilter( [retryCount] [, retryInterval])

Creates a new RetryPolicyFilter instance.

Parameters:
Name Type Argument Default Description
retryCount number <optional>
30000

The client retry count.

retryInterval number <optional>
3

The client retry interval, in milliseconds.

Source:
Example
var azure = require('azure-storage');
var retryPolicy = new azure.RetryPolicyFilter();
retryPolicy.retryCount = 3;
retryPolicy.retryInterval = 3000;
retryPolicy.shouldRetry = function(statusCode, retryContext) {

};
var blobService = azure.createBlobService().withFilter(retryPolicy);

Members


<static> DEFAULT_CLIENT_RETRY_COUNT

Represents the default client retry count.

Source:

<static> DEFAULT_CLIENT_RETRY_INTERVAL

Represents the default client retry interval, in milliseconds.

Source:

Methods


<static> _handle(requestOptions, next)

Handles an operation with a retry policy.

Parameters:
Name Type Description
requestOptions Object

The original request options.

next function

The next filter to be handled.

Source:

handle(requestOptions, next)

Handles an operation with a retry policy.

Parameters:
Name Type Description
requestOptions Object

The original request options.

next function

The next filter to be handled.

Source: