CosmosDBAccount.UpdateStages.WithConsistencyPolicy Interface
public static interface CosmosDBAccount.UpdateStages.WithConsistencyPolicy
The stage of the cosmos db update allowing to set the consistency policy.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
With |
withBoundedStalenessConsistency(long maxStalenessPrefix, int maxIntervalInSeconds)
The consistency policy for the CosmosDB account. |
abstract
With |
withEventualConsistency()
The consistency policy for the CosmosDB account. |
abstract
With |
withSessionConsistency()
The consistency policy for the CosmosDB account. |
abstract
With |
withStrongConsistency()
The consistency policy for the CosmosDB account. |
Method Details
withBoundedStalenessConsistency
public abstract CosmosDBAccount.UpdateStages.WithOptionals withBoundedStalenessConsistency(long maxStalenessPrefix, int maxIntervalInSeconds)
The consistency policy for the CosmosDB account.
Parameters:
Returns:
withEventualConsistency
public abstract CosmosDBAccount.UpdateStages.WithOptionals withEventualConsistency()
The consistency policy for the CosmosDB account.
Returns:
withSessionConsistency
public abstract CosmosDBAccount.UpdateStages.WithOptionals withSessionConsistency()
The consistency policy for the CosmosDB account.
Returns:
withStrongConsistency
public abstract CosmosDBAccount.UpdateStages.WithOptionals withStrongConsistency()
The consistency policy for the CosmosDB account.
Returns:
Applies to
Azure SDK for Java