| Modifier and Type | Method and Description |
|---|---|
ConsistencyPolicy |
DatabaseAccountCreateUpdateParameters.consistencyPolicy()
Get the consistency policy for the Cosmos DB account.
|
ConsistencyPolicy |
CosmosDBAccount.consistencyPolicy() |
ConsistencyPolicy |
DatabaseAccountUpdateParameters.consistencyPolicy()
Get the consistency policy for the Cosmos DB account.
|
ConsistencyPolicy |
ConsistencyPolicy.withDefaultConsistencyLevel(DefaultConsistencyLevel defaultConsistencyLevel)
Set the default consistency level and configuration settings of the Cosmos DB account.
|
ConsistencyPolicy |
ConsistencyPolicy.withMaxIntervalInSeconds(Integer maxIntervalInSeconds)
Set when used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated.
|
ConsistencyPolicy |
ConsistencyPolicy.withMaxStalenessPrefix(Long maxStalenessPrefix)
Set when used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated.
|
| Modifier and Type | Method and Description |
|---|---|
DatabaseAccountCreateUpdateParameters |
DatabaseAccountCreateUpdateParameters.withConsistencyPolicy(ConsistencyPolicy consistencyPolicy)
Set the consistency policy for the Cosmos DB account.
|
DatabaseAccountUpdateParameters |
DatabaseAccountUpdateParameters.withConsistencyPolicy(ConsistencyPolicy consistencyPolicy)
Set the consistency policy for the Cosmos DB account.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/