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. |
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.
-
<static> DEFAULT_CLIENT_RETRY_INTERVAL
-
Represents the default client retry interval, in milliseconds.
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.
-
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.