Package org.infinispan.server.hotrod.tx
Enum ControlByte
- java.lang.Object
-
- java.lang.Enum<ControlByte>
-
- org.infinispan.server.hotrod.tx.ControlByte
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ControlByte>
public enum ControlByte extends java.lang.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.1
- Author:
- Pedro Ruivo
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NON_EXISTINGNOT_READREMOVE_OP
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytebit()booleanhasFlag(byte bitSet)static java.lang.StringprettyPrint(byte bitSet)byteset(byte bitSet)Setsthisflag to thebitSet.static ControlBytevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ControlByte[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static ControlByte[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ControlByte c : ControlByte.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ControlByte valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
prettyPrint
public static java.lang.String prettyPrint(byte bitSet)
-
set
public byte set(byte bitSet)
Setsthisflag to thebitSet.- Returns:
- The new bit set.
-
hasFlag
public boolean hasFlag(byte bitSet)
- Returns:
trueifthisflag is set in thebitSet,falseotherwise.
-
bit
public byte bit()
- Returns:
- The bit corresponding to
thisflag.
-
-