Interface CosmosDBAccount.DefinitionStages.WithConsistencyPolicy
- All Known Subinterfaces:
CosmosDBAccount.Definition
,CosmosDBAccount.DefinitionStages.WithCreate
- Enclosing interface:
- CosmosDBAccount.DefinitionStages
public static interface CosmosDBAccount.DefinitionStages.WithConsistencyPolicy
The stage of the cosmos db definition allowing to set the consistency policy.
-
Method Summary
Modifier and TypeMethodDescriptionwithBoundedStalenessConsistency
(long maxStalenessPrefix, int maxIntervalInSeconds) The bounded staleness consistency policy for the CosmosDB account.The eventual consistency policy for the CosmosDB account.The session consistency policy for the CosmosDB account.The strong consistency policy for the CosmosDB account.
-
Method Details
-
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
-