Enum Class ConsistencyHint
- All Implemented Interfaces:
Serializable, Comparable<ConsistencyHint>, Constable
How current a read must be (spec ยง7.2). Matching always runs against the
local replica, so reads never block on the network (P7);
FRESH
triggers exactly one anti-entropy pull toward one random group member
before the local match, which is the cheap "make sure I am current" a late
joiner or an operator console wants without changing the local-first
default.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ConsistencyHintReturns the enum constant of this class with the specified name.static ConsistencyHint[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LOCAL
Match against the local replica as it stands. The default. -
FRESH
Perform one anti-entropy pull from one random member, then match locally.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-