Interface CosmosDBAccount.DefinitionStages.WithConsistencyPolicy
-
- All Known Subinterfaces:
CosmosDBAccount.Definition,CosmosDBAccount.DefinitionStages.WithCreate
- Enclosing interface:
- CosmosDBAccount.DefinitionStages
public static interface CosmosDBAccount.DefinitionStages.WithConsistencyPolicyThe stage of the cosmos db definition allowing to set the consistency policy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CosmosDBAccount.DefinitionStages.WithWriteReplicationwithBoundedStalenessConsistency(long maxStalenessPrefix, int maxIntervalInSeconds)The bounded staleness consistency policy for the CosmosDB account.CosmosDBAccount.DefinitionStages.WithWriteReplicationwithEventualConsistency()The eventual consistency policy for the CosmosDB account.CosmosDBAccount.DefinitionStages.WithWriteReplicationwithSessionConsistency()The session consistency policy for the CosmosDB account.CosmosDBAccount.DefinitionStages.WithCreatewithStrongConsistency()The strong consistency policy for the CosmosDB account.
-
-
-
Method Detail
-
withEventualConsistency
CosmosDBAccount.DefinitionStages.WithWriteReplication withEventualConsistency()
The eventual consistency policy for the CosmosDB account.- Returns:
- the next stage of the definition
-
withSessionConsistency
CosmosDBAccount.DefinitionStages.WithWriteReplication withSessionConsistency()
The session consistency policy for the CosmosDB account.- Returns:
- the next stage of the definition
-
withBoundedStalenessConsistency
CosmosDBAccount.DefinitionStages.WithWriteReplication withBoundedStalenessConsistency(long maxStalenessPrefix, int maxIntervalInSeconds)
The bounded staleness consistency policy for the CosmosDB account.- Parameters:
maxStalenessPrefix- the max staleness prefixmaxIntervalInSeconds- the max interval in seconds- Returns:
- the next stage of the definition
-
withStrongConsistency
CosmosDBAccount.DefinitionStages.WithCreate withStrongConsistency()
The strong consistency policy for the CosmosDB account.- Returns:
- the next stage of the definition
-
-