public final class ConsistencyPolicy extends JsonSerializable
Constructor and Description |
---|
ConsistencyPolicy()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ConsistencyLevel |
getDefaultConsistencyLevel()
Get the name of the resource.
|
Duration |
getMaxStalenessInterval()
Gets the in bounded staleness consistency, the maximum allowed staleness in terms time interval.
|
int |
getMaxStalenessPrefix()
Gets the bounded staleness consistency, the maximum allowed staleness in terms difference in sequence numbers
(aka version).
|
ConsistencyPolicy |
setDefaultConsistencyLevel(ConsistencyLevel level)
Set the name of the resource.
|
ConsistencyPolicy |
setMaxStalenessInterval(Duration maxStalenessInterval)
Sets the in bounded staleness consistency, the maximum allowed staleness in terms time interval.
|
ConsistencyPolicy |
setMaxStalenessPrefix(int maxStalenessPrefix)
Sets the bounded staleness consistency, the maximum allowed staleness in terms difference in sequence numbers
(aka version).
|
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getPropertyBag, getString, has, populatePropertyBag, remove, serializeJsonToByteBuffer, set, toJson, toJson, toObject, toString
public ConsistencyLevel getDefaultConsistencyLevel()
public ConsistencyPolicy setDefaultConsistencyLevel(ConsistencyLevel level)
level
- the consistency level.public int getMaxStalenessPrefix()
public ConsistencyPolicy setMaxStalenessPrefix(int maxStalenessPrefix)
maxStalenessPrefix
- the max staleness prefix.public Duration getMaxStalenessInterval()
public ConsistencyPolicy setMaxStalenessInterval(Duration maxStalenessInterval)
maxStalenessInterval
- the max staleness interval.Copyright © 2020 Microsoft Corporation. All rights reserved.