Struct ExponentialBackoff
Assembly: Couchbase.NetClient.dll
Syntax
public readonly struct ExponentialBackoff : IBackoffCalculator
Constructors
|
Improve this Doc
View Source
ExponentialBackoff(Int32, Int32, Int32)
Declaration
public ExponentialBackoff(int maxRetries, int delayMillis, int maxDelayMillis)
Parameters
Type |
Name |
Description |
System.Int32 |
maxRetries |
|
System.Int32 |
delayMillis |
|
System.Int32 |
maxDelayMillis |
|
Methods
|
Improve this Doc
View Source
CalculateBackoff(IRequest)
Declaration
public readonly TimeSpan CalculateBackoff(IRequest request)
Parameters
Returns
Type |
Description |
TimeSpan |
|
|
Improve this Doc
View Source
Create(Int32, Int32, Int32)
Declaration
public static ExponentialBackoff Create(int maxRetries, int delayMillis, int maxDelayMillis)
Parameters
Type |
Name |
Description |
System.Int32 |
maxRetries |
|
System.Int32 |
delayMillis |
|
System.Int32 |
maxDelayMillis |
|
Returns
|
Improve this Doc
View Source
Delay(IRequest)
Declaration
public readonly Task Delay(IRequest request)
Parameters
Returns
Implements