Class ConsistencyPolicy
Represents the consistency policy of a database account of the Azure Cosmos DB service.
public sealed class ConsistencyPolicy : JsonSerializable
- Inheritance
-
ConsistencyPolicy
- Inherited Members
- Extension Methods
Constructors
ConsistencyPolicy()
Default constructor for ConsistencyPolicy class in the Azure Cosmos DB service.
public ConsistencyPolicy()
Properties
DefaultConsistencyLevel
Get or set the default consistency level in the Azure Cosmos DB service.
public ConsistencyLevel DefaultConsistencyLevel { get; set; }
Property Value
MaxStalenessIntervalInSeconds
For bounded staleness consistency, the maximum allowed staleness in terms time interval in the Azure Cosmos DB service.
public int MaxStalenessIntervalInSeconds { get; set; }
Property Value
MaxStalenessPrefix
For bounded staleness consistency, the maximum allowed staleness in terms difference in sequence numbers (aka version) in the Azure Cosmos DB service.
public int MaxStalenessPrefix { get; set; }