Interface CosmosDBAccount.UpdateStages.WithConsistencyPolicy
- All Known Subinterfaces:
CosmosDBAccount.Update
,CosmosDBAccount.UpdateStages.WithOptionals
- Enclosing interface:
- CosmosDBAccount.UpdateStages
public static interface CosmosDBAccount.UpdateStages.WithConsistencyPolicy
The stage of the cosmos db update allowing to set the consistency policy.
-
Method Summary
Modifier and TypeMethodDescriptionwithBoundedStalenessConsistency
(long maxStalenessPrefix, int maxIntervalInSeconds) The consistency policy for the CosmosDB account.The consistency policy for the CosmosDB account.The consistency policy for the CosmosDB account.The consistency policy for the CosmosDB account.
-
Method Details
-
withEventualConsistency
CosmosDBAccount.UpdateStages.WithOptionals withEventualConsistency()The consistency policy for the CosmosDB account.- Returns:
- the next stage of the definition
-
withSessionConsistency
CosmosDBAccount.UpdateStages.WithOptionals withSessionConsistency()The consistency policy for the CosmosDB account.- Returns:
- the next stage of the definition
-
withBoundedStalenessConsistency
CosmosDBAccount.UpdateStages.WithOptionals withBoundedStalenessConsistency(long maxStalenessPrefix, int maxIntervalInSeconds) The 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.UpdateStages.WithOptionals withStrongConsistency()The consistency policy for the CosmosDB account.- Returns:
- the next stage of the definition
-