Share via


RetryStrategy Class

 

Represents a retry strategy that determines the number of retry attempts and the interval between retries.

Namespace:   Microsoft.WindowsAzure.Common.TransientFaultHandling
Assembly:  Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Common.TransientFaultHandling.RetryStrategy
    Microsoft.WindowsAzure.Common.TransientFaultHandling.ExponentialBackoff
    Microsoft.WindowsAzure.Common.TransientFaultHandling.FixedInterval
    Microsoft.WindowsAzure.Common.TransientFaultHandling.Incremental

Syntax

public abstract class RetryStrategy
public ref class RetryStrategy abstract 
[<AbstractClass>]
type RetryStrategy = class end
Public MustInherit Class RetryStrategy

Constructors

Name Description
RetryStrategy(String, Boolean)

Initializes a new instance of the RetryStrategy class.

Properties

Name Description
DefaultExponential

Returns a default policy that implements a random exponential retry interval configured with the DefaultClientRetryCount, DefaultMinBackoff, DefaultMaxBackoff, and DefaultClientBackoff parameters. The default retry policy treats all caught exceptions as transient errors.

DefaultFixed

Returns a default policy that implements a fixed retry interval configured with the DefaultClientRetryCount and DefaultRetryInterval parameters. The default retry policy treats all caught exceptions as transient errors.

DefaultProgressive

Returns a default policy that implements a progressive retry interval configured with the DefaultClientRetryCount, DefaultRetryInterval, and DefaultRetryIncrement parameters. The default retry policy treats all caught exceptions as transient errors.

FastFirstRetry

Gets or sets a value indicating whether the first retry attempt will be made immediately, whereas subsequent retries will remain subject to the retry interval.

Name

Gets the name of the retry strategy.

NoRetry

Returns a default policy that performs no retries, but invokes the action only once.

Methods

Name Description
Equals(Object)

(Inherited from Object.)

Finalize()

(Inherited from Object.)

GetHashCode()

(Inherited from Object.)

GetShouldRetry()

Returns the corresponding ShouldRetry delegate.

GetType()

(Inherited from Object.)

MemberwiseClone()

(Inherited from Object.)

ToString()

(Inherited from Object.)

Fields

Name Description
DefaultClientBackoff

Represents the default amount of time used when calculating a random delta in the exponential delay between retries.

DefaultClientRetryCount

Represents the default number of retry attempts.

DefaultFirstFastRetry

Represents the default flag indicating whether the first retry attempt will be made immediately, whereas subsequent retries will remain subject to the retry interval.

DefaultMaxBackoff

Represents the default maximum amount of time used when calculating the exponential delay between retries.

DefaultMinBackoff

Represents the default minimum amount of time used when calculating the exponential delay between retries.

DefaultRetryIncrement

Represents the default time increment between retry attempts in the progressive delay policy.

DefaultRetryInterval

Represents the default interval between retries.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Common.TransientFaultHandling Namespace

Return to top