public enum MqttPacketType extends java.lang.Enum<MqttPacketType>
| Enum Constant and Description |
|---|
CONNACK |
CONNECT |
DISCONNECT |
PINGREQ |
PINGRESP |
PUBACK |
PUBCOMP |
PUBLISH |
PUBREC |
PUBREL |
RESERVED |
SUBACK |
SUBSCRIBE |
UNSUBACK |
UNSUBSCRIBE |
| Modifier and Type | Method and Description |
|---|---|
static MqttPacketType |
of(int type) |
static MqttPacketType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MqttPacketType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MqttPacketType RESERVED
public static final MqttPacketType CONNECT
public static final MqttPacketType CONNACK
public static final MqttPacketType PUBLISH
public static final MqttPacketType PUBACK
public static final MqttPacketType PUBREC
public static final MqttPacketType PUBREL
public static final MqttPacketType PUBCOMP
public static final MqttPacketType SUBSCRIBE
public static final MqttPacketType SUBACK
public static final MqttPacketType UNSUBSCRIBE
public static final MqttPacketType UNSUBACK
public static final MqttPacketType PINGREQ
public static final MqttPacketType PINGRESP
public static final MqttPacketType DISCONNECT
public static MqttPacketType[] values()
for (MqttPacketType c : MqttPacketType.values()) System.out.println(c);
public static MqttPacketType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static MqttPacketType of(int type)