Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Interface IRequest

Namespace: Couchbase.Core.Retry
Assembly: Couchbase.NetClient.dll
Syntax
public interface IRequest

Properties

View Source

Attempts

Declaration
uint Attempts { get; set; }
Property Value
Type Description
uint
View Source

ClientContextId

Gets the context identifier for the analytics request. Useful for debugging.

Declaration
string? ClientContextId { get; set; }
Property Value
Type Description
string

The unique request ID.

Remarks

This value changes for every request.

View Source

Elapsed

The total time expired at the time the operation is called. If another retry happens, it will be updated once the response is received.

Declaration
TimeSpan Elapsed { get; }
Property Value
Type Description
TimeSpan
View Source

Idempotent

Declaration
bool Idempotent { get; }
Property Value
Type Description
bool
View Source

Recorder

A IValueRecorder instance for measuring latencies.

Declaration
[Obsolete("Unused, will be removed in a future version.")]
IValueRecorder Recorder { get; set; }
Property Value
Type Description
IValueRecorder
View Source

RetryReasons

Declaration
List<RetryReason> RetryReasons { get; set; }
Property Value
Type Description
List<RetryReason>
View Source

RetryStrategy

Declaration
IRetryStrategy RetryStrategy { get; set; }
Property Value
Type Description
IRetryStrategy
View Source

Statement

Declaration
string? Statement { get; set; }
Property Value
Type Description
string
View Source

Timeout

Declaration
TimeSpan Timeout { get; set; }
Property Value
Type Description
TimeSpan
View Source

Token

Declaration
CancellationToken Token { get; set; }
Property Value
Type Description
CancellationToken

Methods

View Source

LogOrphaned()

Declaration
void LogOrphaned()
View Source

StopRecording()

Stops the operation timer and writes the elapsed milliseconds to the IValueRecorder.

Declaration
void StopRecording()
View Source

StopRecording(Type?)

Declaration
void StopRecording(Type? errorType)
Parameters
Type Name Description
Type errorType

Extension Methods

RequestExtensions.IncrementAttempts(IRequest, RetryReason)
  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.