Table of Contents

Interface IWithConsistencyPolicy

Namespace
Microsoft.Azure.Management.CosmosDB.Fluent.CosmosDBAccount.Definition
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 long

The max staleness prefix.

maxIntervalInSeconds int

The max interval in seconds.

Returns

IWithWriteReplication

WithEventualConsistency()

The eventual consistency policy for the CosmosDB account.

IWithWriteReplication WithEventualConsistency()

Returns

IWithWriteReplication

WithSessionConsistency()

The session consistency policy for the CosmosDB account.

IWithWriteReplication WithSessionConsistency()

Returns

IWithWriteReplication

WithStrongConsistency()

The strong consistency policy for the CosmosDB account.

IWithCreate WithStrongConsistency()

Returns

IWithCreate