Interface IWithConsistencyPolicy
- Assembly
- Microsoft.Azure.Management.CosmosDB.Fluent.dll
The stage of the cosmos db definition allowing to set the consistency policy.
public interface IWithConsistencyPolicy
Methods
WithBoundedStalenessConsistency(long, int)
The bounded staleness consistency policy for the CosmosDB account.
IWithWriteReplication WithBoundedStalenessConsistency(long maxStalenessPrefix, int maxIntervalInSeconds)
Parameters
maxStalenessPrefix
longThe max staleness prefix.
maxIntervalInSeconds
intThe max interval in seconds.
Returns
WithEventualConsistency()
The eventual consistency policy for the CosmosDB account.
IWithWriteReplication WithEventualConsistency()
Returns
WithSessionConsistency()
The session consistency policy for the CosmosDB account.
IWithWriteReplication WithSessionConsistency()
Returns
WithStrongConsistency()
The strong consistency policy for the CosmosDB account.
IWithCreate WithStrongConsistency()