public enum MqttVersion extends java.lang.Enum<MqttVersion>
Enum Constant and Description |
---|
MQTT_3_1 |
MQTT_3_1_1 |
Modifier and Type | Method and Description |
---|---|
static MqttVersion |
fromProtocolNameAndLevel(java.lang.String protocolName, byte protocolLevel) |
byte |
protocolLevel() |
java.lang.String |
protocolName() |
byte[] |
protocolNameBytes() |
static MqttVersion |
valueOf(java.lang.String name)
以指定名称返回此类型的枚举常量。
|
static MqttVersion[] |
values()
按照声明的顺序返回包含此枚举类型常量的数组。
|
public static final MqttVersion MQTT_3_1
public static final MqttVersion MQTT_3_1_1
public static MqttVersion[] values()
for (MqttVersion c : MqttVersion.values())
System.out.println(c);
public static MqttVersion valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- 如果此枚举类型没有指定名称的常量
java.lang.NullPointerException
- 如果参数为空
public java.lang.String protocolName()
public byte[] protocolNameBytes()
public byte protocolLevel()
public static MqttVersion fromProtocolNameAndLevel(java.lang.String protocolName, byte protocolLevel)
Copyright © 2008–2018 The Netty Project. All rights reserved.