Enum Class HotRodVersion

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

public enum HotRodVersion extends Enum<HotRodVersion>
The various Hot Rod versions
Since:
9.2
Author:
Tristan Tarrant
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

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

      public String toString()
      Overrides:
      toString in class Enum<HotRodVersion>
    • forVersion

      public static HotRodVersion forVersion(byte version)
    • getEncoder

      public static VersionedEncoder getEncoder(byte version)