CosmosSyncContainer (Azure SDK for Java Reference Documentation)
Andrew Henderson
Published Feb 16, 2026
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
public class CosmosSyncContainerextends 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
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
Copyright © 2019 Microsoft Corporation. All rights reserved.