public enum MqttVersion extends Enum<MqttVersion>
Enum Constant and Description |
---|
MQTT_3_1 |
MQTT_3_1_1 |
MQTT_5 |
Modifier and Type | Method and Description |
---|---|
static MqttVersion |
fromProtocolNameAndLevel(String protocolName,
byte protocolLevel) |
byte |
protocolLevel() |
String |
protocolName() |
byte[] |
protocolNameBytes() |
static MqttVersion |
valueOf(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.
|
public static final MqttVersion MQTT_3_1
public static final MqttVersion MQTT_3_1_1
public static final MqttVersion MQTT_5
public static MqttVersion[] values()
for (MqttVersion c : MqttVersion.values()) System.out.println(c);
public static MqttVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String protocolName()
public byte[] protocolNameBytes()
public byte protocolLevel()
public static MqttVersion fromProtocolNameAndLevel(String protocolName, byte protocolLevel)
Copyright © 2008–2024 The Netty Project. All rights reserved.