Package | Description |
---|---|
com.azure.cosmos |
This package provides interfaces for interacting with Azure Cosmos DB.
|
com.azure.cosmos.models |
This package provides rest contracts for interacting with Azure Cosmos DB SQL APIs.
|
Modifier and Type | Method and Description |
---|---|
static ConsistencyLevel |
ConsistencyLevel.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConsistencyLevel[] |
ConsistencyLevel.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
CosmosClientBuilder |
CosmosClientBuilder.consistencyLevel(ConsistencyLevel desiredConsistencyLevel)
Sets the
ConsistencyLevel to be used
By default, ConsistencyLevel.SESSION consistency will be used. |
Modifier and Type | Method and Description |
---|---|
ConsistencyLevel |
CosmosItemRequestOptions.getConsistencyLevel()
Gets the consistency level required for the request.
|
ConsistencyLevel |
CosmosQueryRequestOptions.getConsistencyLevel()
Gets the consistency level required for the request.
|
Modifier and Type | Method and Description |
---|---|
CosmosItemRequestOptions |
CosmosItemRequestOptions.setConsistencyLevel(ConsistencyLevel consistencyLevel)
Sets the consistency level required for the request.
|
CosmosQueryRequestOptions |
CosmosQueryRequestOptions.setConsistencyLevel(ConsistencyLevel consistencyLevel)
Sets the consistency level required for the request.
|
Copyright © 2021 Microsoft Corporation. All rights reserved.