Enum Class SnapshotMarkerFlag

java.lang.Object
java.lang.Enum<SnapshotMarkerFlag>
com.couchbase.client.dcp.message.SnapshotMarkerFlag
All Implemented Interfaces:
Serializable, Comparable<SnapshotMarkerFlag>, Constable

public enum SnapshotMarkerFlag extends Enum<SnapshotMarkerFlag>
Flags, used in snapshot messages.
  • Enum Constant Details

    • MEMORY

      public static final SnapshotMarkerFlag MEMORY
      Specifies that the snapshot contains in-memory items only.
    • DISK

      public static final SnapshotMarkerFlag DISK
      Specifies that the snapshot contains on-disk items only.
    • CHECKPOINT

      public static final SnapshotMarkerFlag CHECKPOINT
      An internally used flag for intra-cluster replication to help to keep in-memory datastructures look similar.
    • ACK

      public static final SnapshotMarkerFlag ACK
      Specifies that this snapshot marker should return a response once the entire snapshot is received.

      To acknowledge DcpSnapshotMarkerResponse have to be sent back with the same opaque value.

    • HISTORY

      public static final SnapshotMarkerFlag HISTORY
    • MAY_CONTAIN_DUPLICATE_KEYS

      public static final SnapshotMarkerFlag MAY_CONTAIN_DUPLICATE_KEYS
  • Method Details

    • values

      public static SnapshotMarkerFlag[] 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 SnapshotMarkerFlag 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
    • value

      public int value()
    • isSet

      public boolean isSet(int flags)
    • decode

      public static Set<SnapshotMarkerFlag> decode(int flags)