Enum Class ConsistencyHint

java.lang.Object
java.lang.Enum<ConsistencyHint>
ai.badmonkey.agentspaces.space.ConsistencyHint
All Implemented Interfaces:
Serializable, Comparable<ConsistencyHint>, Constable

public enum ConsistencyHint extends Enum<ConsistencyHint>
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.
  • Enum Constant Details

    • LOCAL

      public static final ConsistencyHint LOCAL
      Match against the local replica as it stands. The default.
    • FRESH

      public static final ConsistencyHint FRESH
      Perform one anti-entropy pull from one random member, then match locally.
  • Method Details

    • values

      public static ConsistencyHint[] 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

      public static ConsistencyHint valueOf(String name)
      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 name
      NullPointerException - if the argument is null