CosmosDBAccount.DefinitionStages.WithConsistencyPolicy Interface
public static interface CosmosDBAccount.DefinitionStages.WithConsistencyPolicy
The stage of the cosmos db definition allowing to set the consistency policy.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
With |
withBoundedStalenessConsistency(long maxStalenessPrefix, int maxIntervalInSeconds)
The bounded staleness consistency policy for the CosmosDB account. |
abstract
With |
withEventualConsistency()
The eventual consistency policy for the CosmosDB account. |
abstract
With |
withSessionConsistency()
The session consistency policy for the CosmosDB account. |
abstract
With |
withStrongConsistency()
The strong consistency policy for the CosmosDB account. |
Method Details
withBoundedStalenessConsistency
public abstract CosmosDBAccount.DefinitionStages.WithWriteReplication withBoundedStalenessConsistency(long maxStalenessPrefix, int maxIntervalInSeconds)
The bounded staleness consistency policy for the CosmosDB account.
Parameters:
Returns:
withEventualConsistency
public abstract CosmosDBAccount.DefinitionStages.WithWriteReplication withEventualConsistency()
The eventual consistency policy for the CosmosDB account.
Returns:
withSessionConsistency
public abstract CosmosDBAccount.DefinitionStages.WithWriteReplication withSessionConsistency()
The session consistency policy for the CosmosDB account.
Returns:
withStrongConsistency
public abstract CosmosDBAccount.DefinitionStages.WithCreate withStrongConsistency()
The strong consistency policy for the CosmosDB account.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for