Enum MQTTVersion
- java.lang.Object
-
- java.lang.Enum<MQTTVersion>
-
- org.apache.activemq.artemis.core.protocol.mqtt.MQTTVersion
-
- All Implemented Interfaces:
Serializable,Comparable<MQTTVersion>
public enum MQTTVersion extends Enum<MQTTVersion>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MQTT_3_1MQTT_3_1_1MQTT_5
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetVersion()static MQTTVersiongetVersion(int version)static MQTTVersionvalueOf(String name)Returns the enum constant of this type with the specified name.static MQTTVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MQTT_3_1
public static final MQTTVersion MQTT_3_1
-
MQTT_3_1_1
public static final MQTTVersion MQTT_3_1_1
-
MQTT_5
public static final MQTTVersion MQTT_5
-
-
Method Detail
-
values
public static MQTTVersion[] 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 (MQTTVersion c : MQTTVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MQTTVersion 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
-
getVersion
public int getVersion()
-
getVersion
public static MQTTVersion getVersion(int version)
-
-