Interface IBackOff
Strategy interface to control back-off between retry attempts.
Namespace: Google.Apis.Util
Assembly: Google.Apis.Core.dll
Syntax
public interface IBackOff
Properties
MaxNumOfRetries
Gets the maximum number of retries.
Declaration
int MaxNumOfRetries { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
GetNextBackOff(Int32)
Gets the a time span to wait before next retry. If the current retry reached the maximum number of retries, the returned value is System.TimeSpan.MinValue.
Declaration
TimeSpan GetNextBackOff(int currentRetry)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | currentRetry |
Returns
| Type | Description |
|---|---|
| System.TimeSpan |