Package org.infinispan.client.hotrod
Enum ProtocolVersion
- java.lang.Object
-
- java.lang.Enum<ProtocolVersion>
-
- org.infinispan.client.hotrod.ProtocolVersion
-
- All Implemented Interfaces:
Serializable
,Comparable<ProtocolVersion>
public enum ProtocolVersion extends Enum<ProtocolVersion>
Enumeration of supported Hot Rod client protocol VERSIONS.- Since:
- 9.0
- Author:
- Radoslav Husar
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static ProtocolVersion
DEFAULT_PROTOCOL_VERSION
static ProtocolVersion
HIGHEST_PROTOCOL_VERSION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ProtocolVersion
getBestVersion(int version)
org.infinispan.client.hotrod.impl.protocol.Codec
getCodec()
int
getVersion()
static ProtocolVersion
parseVersion(String version)
String
toString()
static ProtocolVersion
valueOf(String name)
Returns 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 Detail
-
PROTOCOL_VERSION_20
public static final ProtocolVersion PROTOCOL_VERSION_20
-
PROTOCOL_VERSION_21
public static final ProtocolVersion PROTOCOL_VERSION_21
-
PROTOCOL_VERSION_22
public static final ProtocolVersion PROTOCOL_VERSION_22
-
PROTOCOL_VERSION_23
public static final ProtocolVersion PROTOCOL_VERSION_23
-
PROTOCOL_VERSION_24
public static final ProtocolVersion PROTOCOL_VERSION_24
-
PROTOCOL_VERSION_25
public static final ProtocolVersion PROTOCOL_VERSION_25
-
PROTOCOL_VERSION_26
public static final ProtocolVersion PROTOCOL_VERSION_26
-
PROTOCOL_VERSION_27
public static final ProtocolVersion PROTOCOL_VERSION_27
-
PROTOCOL_VERSION_28
public static final ProtocolVersion PROTOCOL_VERSION_28
-
PROTOCOL_VERSION_29
public static final ProtocolVersion PROTOCOL_VERSION_29
-
PROTOCOL_VERSION_30
public static final ProtocolVersion PROTOCOL_VERSION_30
-
PROTOCOL_VERSION_31
public static final ProtocolVersion PROTOCOL_VERSION_31
-
PROTOCOL_VERSION_AUTO
public static final ProtocolVersion PROTOCOL_VERSION_AUTO
-
-
Field Detail
-
DEFAULT_PROTOCOL_VERSION
public static final ProtocolVersion DEFAULT_PROTOCOL_VERSION
-
HIGHEST_PROTOCOL_VERSION
public static final ProtocolVersion HIGHEST_PROTOCOL_VERSION
-
-
Method Detail
-
values
public static ProtocolVersion[] 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 (ProtocolVersion c : ProtocolVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ProtocolVersion valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
-
getVersion
public int getVersion()
-
getCodec
public org.infinispan.client.hotrod.impl.protocol.Codec getCodec()
-
parseVersion
public static ProtocolVersion parseVersion(String version)
-
getBestVersion
public static ProtocolVersion getBestVersion(int version)
-
-