CosmosSyncContainer (Azure SDK for Java Reference Documentation)

CosmosSyncContainer (Azure SDK for Java Reference Documentation)

  • public class CosmosSyncContainer extends Object

    Provides synchronous methods for reading, deleting, and replacing existing Containers Provides methods for interacting with child resources (Items, Scripts, Conflicts)

    • Method Detail

      • id

        public String id()

        Id string.

        Returns: the string
      • readProvisionedThroughput

        public Integer readProvisionedThroughput() throws CosmosClientException

        Read provisioned throughput integer.

        Returns: the integer. null response indicates database doesn't have any provisioned RUs Throws: CosmosClientException - the cosmos client exception
      • replaceProvisionedThroughput

        public Integer replaceProvisionedThroughput(int requestUnitsPerSecond) throws CosmosClientException

        Replace provisioned throughput integer.

        Parameters: requestUnitsPerSecond - the request units per second Returns: the integer Throws: CosmosClientException - the cosmos client exception
      • getScripts

        public CosmosSyncScripts getScripts()

        Gets the cosmos sync scripts.

        Returns: the cosmos sync scripts

Copyright © 2019 Microsoft Corporation. All rights reserved.

ncG1vNJzZmiZqqq%2Fpr%2FDpJuom6Njr627wWeaqKqVY8SqusOorqxmnprBcHDWnploopGrrnCt2a6pnmWTpMCuu9JoamdsXmV8pLvMaJizraKafKWt05pmnKejory0e9KypZxnc6TArrvSjLCnm3Oku7WtyKecq2aYqbqt