Enum Class MqttVersion

java.lang.Object
java.lang.Enum<MqttVersion>
com.swiftmq.impl.mqtt.v311.netty.handler.codec.mqtt.MqttVersion
All Implemented Interfaces:
Serializable, Comparable<MqttVersion>, Constable

public enum MqttVersion extends Enum<MqttVersion>
Mqtt version specific constant values used by multiple classes in mqtt-codec.
  • Enum Constant Details

  • Method Details

    • values

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

      public String protocolName()
    • protocolNameBytes

      public byte[] protocolNameBytes()
    • protocolLevel

      public byte protocolLevel()
    • fromProtocolNameAndLevel

      public static MqttVersion fromProtocolNameAndLevel(String protocolName, byte protocolLevel)