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.
|
int |
getMaxStalenessIntervalInSeconds()
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 |
setMaxStalenessIntervalInSeconds(int maxStalenessIntervalInSeconds)
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, getString, has, 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 int getMaxStalenessIntervalInSeconds()
public ConsistencyPolicy setMaxStalenessIntervalInSeconds(int maxStalenessIntervalInSeconds)
maxStalenessIntervalInSeconds
- the max staleness interval in seconds.Copyright © 2020 Microsoft Corporation. All rights reserved.