Package org.infinispan.server.hotrod
Enum Class HotRodVersion
- All Implemented Interfaces:
Serializable
,Comparable<HotRodVersion>
,Constable
The various Hot Rod versions
- Since:
- 9.2
- Author:
- Tristan Tarrant
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic HotRodVersion
forVersion
(byte version) static VersionedEncoder
getEncoder
(byte version) byte
boolean
isAtLeast
(byte version) Checks whether the supplied version is equal or greater than the version represented by this objectboolean
isOlder
(byte version) Checks whether the supplied version is older than the version represented by this objecttoString()
static HotRodVersion
Returns the enum constant of this class with the specified name.static HotRodVersion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
-
HOTROD_20
-
HOTROD_21
-
HOTROD_22
-
HOTROD_23
-
HOTROD_24
-
HOTROD_25
-
HOTROD_26
-
HOTROD_27
-
HOTROD_28
-
HOTROD_29
-
HOTROD_30
-
HOTROD_31
-
HOTROD_40
-
HOTROD_41
-
-
Field Details
-
LATEST
-
-
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
-
getVersion
public byte getVersion() -
isOlder
public boolean isOlder(byte version) Checks whether the supplied version is older than the version represented by this object- Parameters:
version
- a Hot Rod version in its wire representation- Returns:
- true if version is older than this
-
isAtLeast
public boolean isAtLeast(byte version) Checks whether the supplied version is equal or greater than the version represented by this object- Parameters:
version
- a Hot Rod version in its wire representation- Returns:
- true if version is equal or greater than this
-
toString
- Overrides:
toString
in classEnum<HotRodVersion>
-
forVersion
-
getEncoder
-