Table of Contents

Class ExponentialRetry

Namespace
Microsoft.Azure.Cosmos.Table
Assembly
Microsoft.Azure.Cosmos.Table.dll
public sealed class ExponentialRetry : IExtendedRetryPolicy, IRetryPolicy
Inheritance
ExponentialRetry
Implements
Inherited Members

Constructors

ExponentialRetry()

public ExponentialRetry()

ExponentialRetry(TimeSpan, int)

public ExponentialRetry(TimeSpan deltaBackoff, int maxAttempts)

Parameters

deltaBackoff TimeSpan
maxAttempts int

Methods

CreateInstance()

public IRetryPolicy CreateInstance()

Returns

IRetryPolicy

Evaluate(RetryContext, OperationContext)

public RetryInfo Evaluate(RetryContext retryContext, OperationContext operationContext)

Parameters

retryContext RetryContext
operationContext OperationContext

Returns

RetryInfo

ShouldRetry(int, int, Exception, out TimeSpan, OperationContext)

public bool ShouldRetry(int currentRetryCount, int statusCode, Exception lastException, out TimeSpan retryInterval, OperationContext operationContext)

Parameters

currentRetryCount int
statusCode int
lastException Exception
retryInterval TimeSpan
operationContext OperationContext

Returns

bool