Share via


RetryPolicyProvider.ExponentialRetryProvider Method

Definition

Creates a new RetryPolicyProvider using the ExponentialRetry policy.

public static Microsoft.Azure.Batch.RetryPolicyProvider ExponentialRetryProvider (TimeSpan deltaBackoff, int maxRetries, TimeSpan? maxBackoff = default);
static member ExponentialRetryProvider : TimeSpan * int * Nullable<TimeSpan> -> Microsoft.Azure.Batch.RetryPolicyProvider
Public Shared Function ExponentialRetryProvider (deltaBackoff As TimeSpan, maxRetries As Integer, Optional maxBackoff As Nullable(Of TimeSpan) = Nothing) As RetryPolicyProvider

Parameters

deltaBackoff
TimeSpan

The backoff interval between retries, where the resulting backoff is 2^n * deltaBackoff (where n is the number of retries)

maxRetries
Int32

The maximum number of retry attempts.

maxBackoff
Nullable<TimeSpan>

The maximum amount of time to back off between attempts.

Returns

A provider configured to perform exponential retries using the specified backoff and max retries.

Applies to