Interface CosmosDBAccount.UpdateStages.WithConsistencyPolicy
-
- All Known Subinterfaces:
CosmosDBAccount.Update,CosmosDBAccount.UpdateStages.WithOptionals
- Enclosing interface:
- CosmosDBAccount.UpdateStages
public static interface CosmosDBAccount.UpdateStages.WithConsistencyPolicyThe stage of the cosmos db update allowing to set the consistency policy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CosmosDBAccount.UpdateStages.WithOptionalswithBoundedStalenessConsistency(long maxStalenessPrefix, int maxIntervalInSeconds)The consistency policy for the CosmosDB account.CosmosDBAccount.UpdateStages.WithOptionalswithEventualConsistency()The consistency policy for the CosmosDB account.CosmosDBAccount.UpdateStages.WithOptionalswithSessionConsistency()The consistency policy for the CosmosDB account.CosmosDBAccount.UpdateStages.WithOptionalswithStrongConsistency()The consistency policy for the CosmosDB account.
-
-
-
Method Detail
-
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
-
-