Enum Class ProtocolVersion

java.lang.Object
java.lang.Enum<ProtocolVersion>
org.infinispan.client.hotrod.ProtocolVersion
All Implemented Interfaces:
Serializable, Comparable<ProtocolVersion>, Constable

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_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_41

      public static final ProtocolVersion PROTOCOL_VERSION_41
    • 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 class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ProtocolVersion valueOf(String name)
      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 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)