Share via


ExponentialBackoff Class

 

A retry strategy with backoff parameters for calculating the exponential delay 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

Syntax

public class ExponentialBackoff : RetryStrategy
public ref class ExponentialBackoff : RetryStrategy
type ExponentialBackoff = 
    class
        inherit RetryStrategy
    end
Public Class ExponentialBackoff
    Inherits RetryStrategy

Constructors

Name Description
System_CAPS_pubmethod ExponentialBackoff()

Initializes a new instance of the ExponentialBackoff class.

System_CAPS_pubmethod ExponentialBackoff(Int32, TimeSpan, TimeSpan, TimeSpan)

Initializes a new instance of the ExponentialBackoff class with the specified retry settings.

System_CAPS_pubmethod ExponentialBackoff(String, Int32, TimeSpan, TimeSpan, TimeSpan)

Initializes a new instance of the ExponentialBackoff class with the specified name and retry settings.

System_CAPS_pubmethod ExponentialBackoff(String, Int32, TimeSpan, TimeSpan, TimeSpan, Boolean)

Initializes a new instance of the ExponentialBackoff class with the specified name, retry settings, and fast retry option.

Properties

Name Description
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.(Inherited from RetryStrategy.)

System_CAPS_pubproperty Name

Gets the name of the retry strategy.(Inherited from RetryStrategy.)

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.(Overrides RetryStrategy.GetShouldRetry().)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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