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