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
System_CAPS_protmethod RetryStrategy(String, Boolean)

Initializes a new instance of the RetryStrategy class.

Properties

Name Description
System_CAPS_pubpropertySystem_CAPS_static 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.

System_CAPS_pubpropertySystem_CAPS_static 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.

System_CAPS_pubpropertySystem_CAPS_static 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.

System_CAPS_pubproperty 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.

System_CAPS_pubproperty Name

Gets the name of the retry strategy.

System_CAPS_pubpropertySystem_CAPS_static NoRetry

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

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetShouldRetry()

Returns the corresponding ShouldRetry delegate.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Fields

Name Description
System_CAPS_pubfieldSystem_CAPS_static DefaultClientBackoff

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

System_CAPS_pubfieldSystem_CAPS_static DefaultClientRetryCount

Represents the default number of retry attempts.

System_CAPS_pubfieldSystem_CAPS_static 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.

System_CAPS_pubfieldSystem_CAPS_static DefaultMaxBackoff

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

System_CAPS_pubfieldSystem_CAPS_static DefaultMinBackoff

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

System_CAPS_pubfieldSystem_CAPS_static DefaultRetryIncrement

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

System_CAPS_pubfieldSystem_CAPS_static 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