Couchbase .NET SDK | 3.7.2
Search Results for

    Show / Hide Table of Contents

    Class RetrySpec

    A retry strategy to be used for a given ErrorCode.

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

    Constructors

    | Edit this page View Source

    RetrySpec()

    Declaration
    public RetrySpec()

    Properties

    | Edit this page View Source

    Ceiling

    Gets or sets the maximum retry interval.

    Declaration
    [JsonPropertyName("ceil")]
    public int? Ceiling { get; set; }
    Property Value
    Type Description
    int?
    | Edit this page 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?
    | Edit this page View Source

    Interval

    Gets or sets the base interval in ms.

    Declaration
    [JsonPropertyName("interval")]
    public int Interval { get; set; }
    Property Value
    Type Description
    int
    | Edit this page 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?
    | Edit this page View Source

    Strategy

    Gets or sets the RetryStrategy.

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

    Methods

    | Edit this page 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

    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.