Package org.infinispan.server.hotrod.tx
Enum Class ControlByte
- All Implemented Interfaces:
Serializable
,Comparable<ControlByte>
,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte
bit()
boolean
hasFlag
(byte bitSet) static String
prettyPrint
(byte bitSet) byte
set
(byte bitSet) Setsthis
flag to thebitSet
.static ControlByte
Returns the enum constant of this class with the specified name.static ControlByte[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_READ
-
NON_EXISTING
-
REMOVE_OP
-
-
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
-
prettyPrint
-
set
public byte set(byte bitSet) Setsthis
flag to thebitSet
.- Returns:
- The new bit set.
-
hasFlag
public boolean hasFlag(byte bitSet) - Returns:
true
ifthis
flag is set in thebitSet
,false
otherwise.
-
bit
public byte bit()- Returns:
- The bit corresponding to
this
flag.
-