Class RetrySpec
A retry strategy to be used for a given ErrorCode.
Inherited Members
Namespace: Couchbase.Core.IO.Operations.Errors
Assembly: Couchbase.NetClient.dll
Syntax
public class RetrySpec
Constructors
| Edit this page View SourceRetrySpec()
Declaration
public RetrySpec()
Properties
| Edit this page View SourceCeiling
Gets or sets the maximum retry interval.
Declaration
[JsonPropertyName("ceil")]
public int? Ceiling { get; set; }
Property Value
Type | Description |
---|---|
int? |
FirstRetryDelay
Gets or sets the value to be added to the first interval.
Declaration
[JsonPropertyName("after")]
public int? FirstRetryDelay { get; set; }
Property Value
Type | Description |
---|---|
int? |
Interval
Gets or sets the base interval in ms.
Declaration
[JsonPropertyName("interval")]
public int Interval { get; set; }
Property Value
Type | Description |
---|---|
int |
RetryTimeout
Gets or sets the maximum duration for retries or will timeout.
Declaration
[JsonPropertyName("max-duration")]
public int? RetryTimeout { get; set; }
Property Value
Type | Description |
---|---|
int? |
Strategy
Gets or sets the RetryStrategy.
Declaration
[JsonPropertyName("strategy")]
public RetryStrategy Strategy { get; set; }
Property Value
Type | Description |
---|---|
RetryStrategy |
Methods
| Edit this page View SourceGetNextInterval(uint)
Gets the next interval using the retry strategy.
Declaration
public int GetNextInterval(uint attempts)
Parameters
Type | Name | Description |
---|---|---|
uint | attempts | The attempts. |
Returns
Type | Description |
---|---|
int | The next interval to wait before the next |