java.lang.Object
java.lang.Enum<ControlByte>
org.infinispan.client.hotrod.impl.transaction.entry.ControlByte
All Implemented Interfaces:
Serializable, Comparable<ControlByte>

public enum ControlByte extends Enum<ControlByte>
A control byte used by each write operation to flag if the key was read or not, or if the write operation is a remove operation
Since:
9.3
Author:
Pedro Ruivo
  • Enum Constant Details

    • NOT_READ

      public static final ControlByte NOT_READ
    • NON_EXISTING

      public static final ControlByte NON_EXISTING
    • REMOVE_OP

      public static final ControlByte REMOVE_OP
  • Method Details

    • values

      public static ControlByte[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ControlByte valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • prettyPrint

      public static String prettyPrint(byte bitSet)
    • set

      public byte set(byte bitSet)
      Sets this flag to the bitSet.
      Returns:
      The new bit set.
    • hasFlag

      public boolean hasFlag(byte bitSet)
      Returns:
      true if this flag is set in the bitSet, false otherwise.
    • bit

      public byte bit()
      Returns:
      The bit corresponding to this flag.