Package org.infinispan.client.hotrod
Enum ProtocolVersion
- All Implemented Interfaces:
Serializable,Comparable<ProtocolVersion>
Enumeration of supported Hot Rod client protocol VERSIONS.
- Since:
- 9.0
- Author:
- Radoslav Husar
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProtocolVersionstatic final ProtocolVersionstatic final ProtocolVersion -
Method Summary
Modifier and TypeMethodDescriptionchoose(ProtocolVersion serverVersion) static ProtocolVersiongetBestVersion(int version) org.infinispan.client.hotrod.impl.protocol.CodecgetCodec()intstatic ProtocolVersionparseVersion(String version) toString()static ProtocolVersionReturns the enum constant of this type with the specified name.static ProtocolVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PROTOCOL_VERSION_20
-
PROTOCOL_VERSION_21
-
PROTOCOL_VERSION_22
-
PROTOCOL_VERSION_23
-
PROTOCOL_VERSION_24
-
PROTOCOL_VERSION_25
-
PROTOCOL_VERSION_26
-
PROTOCOL_VERSION_27
-
PROTOCOL_VERSION_28
-
PROTOCOL_VERSION_29
-
PROTOCOL_VERSION_30
-
PROTOCOL_VERSION_31
-
PROTOCOL_VERSION_40
-
PROTOCOL_VERSION_AUTO
-
-
Field Details
-
DEFAULT_PROTOCOL_VERSION
-
HIGHEST_PROTOCOL_VERSION
-
SAFE_HANDSHAKE_PROTOCOL_VERSION
-
-
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
-
toString
- Overrides:
toStringin classEnum<ProtocolVersion>
-
getVersion
public int getVersion() -
getCodec
public org.infinispan.client.hotrod.impl.protocol.Codec getCodec() -
parseVersion
-
getBestVersion
-
choose
-