Package org.infinispan.server.hotrod
Enum HotRodVersion
- All Implemented Interfaces:
Serializable
,Comparable<HotRodVersion>
The various Hot Rod versions
- Since:
- 9.2
- Author:
- Tristan Tarrant
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
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 type with the specified name.static HotRodVersion[]
values()
Returns an array containing the constants of this enum type, 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
-
-
Field Details
-
LATEST
-
-
Method Details
-
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
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 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
-