Sdílet prostřednictvím


ConsistencyPolicy Constructors

Definition

Overloads

ConsistencyPolicy()

Initializes a new instance of the ConsistencyPolicy class.

ConsistencyPolicy(DefaultConsistencyLevel, Nullable<Int64>, Nullable<Int32>)

Initializes a new instance of the ConsistencyPolicy class.

ConsistencyPolicy()

Initializes a new instance of the ConsistencyPolicy class.

public ConsistencyPolicy ();
Public Sub New ()

Applies to

ConsistencyPolicy(DefaultConsistencyLevel, Nullable<Int64>, Nullable<Int32>)

Initializes a new instance of the ConsistencyPolicy class.

public ConsistencyPolicy (Microsoft.Azure.Management.CosmosDB.Fluent.Models.DefaultConsistencyLevel defaultConsistencyLevel, long? maxStalenessPrefix = default, int? maxIntervalInSeconds = default);
new Microsoft.Azure.Management.CosmosDB.Fluent.Models.ConsistencyPolicy : Microsoft.Azure.Management.CosmosDB.Fluent.Models.DefaultConsistencyLevel * Nullable<int64> * Nullable<int> -> Microsoft.Azure.Management.CosmosDB.Fluent.Models.ConsistencyPolicy
Public Sub New (defaultConsistencyLevel As DefaultConsistencyLevel, Optional maxStalenessPrefix As Nullable(Of Long) = Nothing, Optional maxIntervalInSeconds As Nullable(Of Integer) = Nothing)

Parameters

defaultConsistencyLevel
DefaultConsistencyLevel

The default consistency level and configuration settings of the Cosmos DB account. Possible values include: 'Eventual', 'Session', 'BoundedStaleness', 'Strong', 'ConsistentPrefix'

maxStalenessPrefix
Nullable<Int64>

When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is 1 – 2,147,483,647. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.

maxIntervalInSeconds
Nullable<Int32>

When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is 5 - 86400. Required when defaultConsistencyPolicy is set to 'BoundedStaleness'.

Applies to