Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class RetrySpec

A retry strategy to be used for a given ErrorCode.

Inheritance
object
RetrySpec
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Couchbase.Core.IO.Operations.Errors
Assembly: Couchbase.NetClient.dll
Syntax
public class RetrySpec

Constructors

View Source

RetrySpec()

Declaration
public RetrySpec()

Properties

View Source

Ceiling

Gets or sets the maximum retry interval.

Declaration
[JsonPropertyName("ceil")]
public int? Ceiling { get; set; }
Property Value
Type Description
int?
View Source

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?
View Source

Interval

Gets or sets the base interval in ms.

Declaration
[JsonPropertyName("interval")]
public int Interval { get; set; }
Property Value
Type Description
int
View Source

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?
View Source

Strategy

Gets or sets the RetryStrategy.

Declaration
[JsonPropertyName("strategy")]
public RetryStrategy Strategy { get; set; }
Property Value
Type Description
RetryStrategy

Methods

View Source

GetNextInterval(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

  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.