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 SummaryModifier 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- 
withEventualConsistencyCosmosDBAccount.DefinitionStages.WithWriteReplication withEventualConsistency()The eventual consistency policy for the CosmosDB account.- Returns:
- the next stage of the definition
 
- 
withSessionConsistencyCosmosDBAccount.DefinitionStages.WithWriteReplication withSessionConsistency()The session consistency policy for the CosmosDB account.- Returns:
- the next stage of the definition
 
- 
withBoundedStalenessConsistencyCosmosDBAccount.DefinitionStages.WithWriteReplication withBoundedStalenessConsistency(long maxStalenessPrefix, int maxIntervalInSeconds) The bounded staleness consistency policy for the CosmosDB account.- Parameters:
- maxStalenessPrefix- the max staleness prefix
- maxIntervalInSeconds- the max interval in seconds
- Returns:
- the next stage of the definition
 
- 
withStrongConsistencyCosmosDBAccount.DefinitionStages.WithCreate withStrongConsistency()The strong consistency policy for the CosmosDB account.- Returns:
- the next stage of the definition
 
 
-