Table of Contents

Interface IConsistencyOptions

Namespace
Excalibur.Data.CloudNative
Assembly
Excalibur.Data.Abstractions.dll

Defines consistency options for cloud-native database operations.

public interface IConsistencyOptions

Properties

ConsistencyLevel

Gets the desired consistency level for the operation.

ConsistencyLevel ConsistencyLevel { get; }

Property Value

ConsistencyLevel

MaxStaleness

Gets the maximum staleness for bounded staleness consistency.

TimeSpan? MaxStaleness { get; }

Property Value

TimeSpan?

The maximum allowed staleness duration, or null if not using bounded staleness.

MaxVersionLag

Gets the maximum version lag for bounded staleness consistency.

long? MaxVersionLag { get; }

Property Value

long?

The maximum number of versions the read can lag behind, or null if not applicable.

SessionToken

Gets the session token for session-level consistency.

string? SessionToken { get; }

Property Value

string

The session token, or null if session consistency is not used. Session tokens are typically returned from write operations and passed to subsequent read operations to ensure read-your-writes consistency.