public enum MqttMessageType extends java.lang.Enum<MqttMessageType>
Enum Constant and Description |
---|
CONNACK |
CONNECT |
DISCONNECT |
PINGREQ |
PINGRESP |
PUBACK |
PUBCOMP |
PUBLISH |
PUBREC |
PUBREL |
SUBACK |
SUBSCRIBE |
UNSUBACK |
UNSUBSCRIBE |
Modifier and Type | Method and Description |
---|---|
int |
value() |
static MqttMessageType |
valueOf(int type) |
static MqttMessageType |
valueOf(java.lang.String name)
以指定名称返回此类型的枚举常量。
|
static MqttMessageType[] |
values()
按照声明的顺序返回包含此枚举类型常量的数组。
|
public static final MqttMessageType CONNECT
public static final MqttMessageType CONNACK
public static final MqttMessageType PUBLISH
public static final MqttMessageType PUBACK
public static final MqttMessageType PUBREC
public static final MqttMessageType PUBREL
public static final MqttMessageType PUBCOMP
public static final MqttMessageType SUBSCRIBE
public static final MqttMessageType SUBACK
public static final MqttMessageType UNSUBSCRIBE
public static final MqttMessageType UNSUBACK
public static final MqttMessageType PINGREQ
public static final MqttMessageType PINGRESP
public static final MqttMessageType DISCONNECT
public static MqttMessageType[] values()
for (MqttMessageType c : MqttMessageType.values())
System.out.println(c);
public static MqttMessageType valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- 如果此枚举类型没有指定名称的常量
java.lang.NullPointerException
- 如果参数为空
public int value()
public static MqttMessageType valueOf(int type)
Copyright © 2008–2018 The Netty Project. All rights reserved.