public final class ConsistencyPolicy extends JsonSerializable
| Constructor and Description |
|---|
ConsistencyPolicy()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ConsistencyLevel |
defaultConsistencyLevel()
Get the name of the resource.
|
ConsistencyPolicy |
defaultConsistencyLevel(ConsistencyLevel level)
Set the name of the resource.
|
int |
maxStalenessIntervalInSeconds()
Gets the in bounded staleness consistency, the maximum allowed staleness in terms time interval.
|
ConsistencyPolicy |
maxStalenessIntervalInSeconds(int maxStalenessIntervalInSeconds)
Sets the in bounded staleness consistency, the maximum allowed staleness in terms time interval.
|
int |
maxStalenessPrefix()
Gets the bounded staleness consistency, the maximum allowed staleness in terms difference in sequence numbers
(aka version).
|
ConsistencyPolicy |
maxStalenessPrefix(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, toStringpublic ConsistencyLevel defaultConsistencyLevel()
public ConsistencyPolicy defaultConsistencyLevel(ConsistencyLevel level)
level - the consistency level.public int maxStalenessPrefix()
public ConsistencyPolicy maxStalenessPrefix(int maxStalenessPrefix)
maxStalenessPrefix - the max staleness prefix.public int maxStalenessIntervalInSeconds()
public ConsistencyPolicy maxStalenessIntervalInSeconds(int maxStalenessIntervalInSeconds)
maxStalenessIntervalInSeconds - the max staleness interval in seconds.Copyright © 2019. All rights reserved.