ExponentialBackoff Constructor (String, Int32, TimeSpan, TimeSpan, TimeSpan)
Initializes a new instance of the ExponentialBackoff class with the specified name and retry settings.
Namespace: Microsoft.WindowsAzure.Common.TransientFaultHandling
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)
Usage
'Usage
Dim name As String
Dim retryCount As Integer
Dim minBackoff As TimeSpan
Dim maxBackoff As TimeSpan
Dim deltaBackoff As TimeSpan
Dim instance As New ExponentialBackoff(name, retryCount, minBackoff, maxBackoff, deltaBackoff)
Syntax
'Declaration
Public Sub New ( _
name As String, _
retryCount As Integer, _
minBackoff As TimeSpan, _
maxBackoff As TimeSpan, _
deltaBackoff As TimeSpan _
)
public ExponentialBackoff (
string name,
int retryCount,
TimeSpan minBackoff,
TimeSpan maxBackoff,
TimeSpan deltaBackoff
)
public:
ExponentialBackoff (
String^ name,
int retryCount,
TimeSpan minBackoff,
TimeSpan maxBackoff,
TimeSpan deltaBackoff
)
public ExponentialBackoff (
String name,
int retryCount,
TimeSpan minBackoff,
TimeSpan maxBackoff,
TimeSpan deltaBackoff
)
public function ExponentialBackoff (
name : String,
retryCount : int,
minBackoff : TimeSpan,
maxBackoff : TimeSpan,
deltaBackoff : TimeSpan
)
Parameters
- name
The name of the retry strategy.
- retryCount
The maximum number of retry attempts.
- minBackoff
The minimum backoff time
- maxBackoff
The maximum backoff time.
- deltaBackoff
The value that will be used to calculate a random delta in the exponential delay between retries.
Remarks
Platforms
Development Platforms
Windows Vista, Windows 7, Windows Server 2008, Windows 8.1, Windows Server 2012 R2, Windows 8 and Windows Server 2012
Target Platforms
See Also
Reference
ExponentialBackoff Class
ExponentialBackoff Members
Microsoft.WindowsAzure.Common.TransientFaultHandling Namespace