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 Details

    • withEventualConsistency

      The consistency policy for the CosmosDB account.
      Returns:
      the next stage of the definition
    • 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 prefix
      maxIntervalInSeconds - the max interval in seconds
      Returns:
      the next stage of the definition
    • withStrongConsistency

      The consistency policy for the CosmosDB account.
      Returns:
      the next stage of the definition