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 Details

    • 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_40

      public static final ProtocolVersion PROTOCOL_VERSION_40
    • PROTOCOL_VERSION_AUTO

      public static final ProtocolVersion PROTOCOL_VERSION_AUTO
  • Field Details

    • DEFAULT_PROTOCOL_VERSION

      public static final ProtocolVersion DEFAULT_PROTOCOL_VERSION
    • HIGHEST_PROTOCOL_VERSION

      public static final ProtocolVersion HIGHEST_PROTOCOL_VERSION
    • SAFE_HANDSHAKE_PROTOCOL_VERSION

      public static final ProtocolVersion SAFE_HANDSHAKE_PROTOCOL_VERSION
  • Method Details

    • values

      public static ProtocolVersion[] 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

      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ProtocolVersion>
    • 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)
    • choose

      public ProtocolVersion choose(ProtocolVersion serverVersion)