Class BackOffDelayPolicy
Class for the backoff delay policy. Used during the recovery of the connection.
public class BackOffDelayPolicy : IBackOffDelayPolicy
- Inheritance
-
BackOffDelayPolicy
- Implements
- Inherited Members
Constructors
BackOffDelayPolicy()
public BackOffDelayPolicy()
BackOffDelayPolicy(int)
public BackOffDelayPolicy(int maxAttempt)
Parameters
maxAttempt
int
Properties
CurrentAttempt
public int CurrentAttempt { get; }
Property Value
Methods
Delay()
Get the next delay in milliseconds.
public int Delay()
Returns
IsActive()
Define if the backoff delay policy is active. Can be used to disable the backoff delay policy after a certain number of retries. or when the user wants to disable the backoff delay policy.
public bool IsActive()
Returns
Reset()
Reset the backoff delay policy.
public void Reset()
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.