ConsistencyPolicy Class

定义

Encapsulates the settings for consistency policy in the Azure Cosmos DB database service.

public class ConsistencyPolicy extends JsonSerializable
继承
java.lang.Object
Serializable
ConsistencyPolicy

继承成员

构造函数

ConsistencyPolicy(JSONObject jsonObject)

Constructor.

ConsistencyPolicy(String jsonString)

Constructor.

方法

getDefaultConsistencyLevel()

Get the name of the resource.

getMaxStalenessIntervalInSeconds()

Gets the in bounded staleness consistency, the maximum allowed staleness in terms time interval.

getMaxStalenessPrefix()

Gets the bounded staleness consistency, the maximum allowed staleness in terms difference in sequence numbers (aka version).

setDefaultConsistencyLevel(ConsistencyLevel level)

Set the name of the resource.

setMaxStalenessIntervalInSeconds(int maxStalenessIntervalInSeconds)

Sets the in bounded staleness consistency, the maximum allowed staleness in terms time interval.

setMaxStalenessPrefix(int maxStalenessPrefix)

Sets the bounded staleness consistency, the maximum allowed staleness in terms difference in sequence numbers (aka version).

适用于