public enum MqttMessageType extends 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(String name)
Returns the enum constant of this type with the specified name.
|
static MqttMessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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(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 int value()
public static MqttMessageType valueOf(int type)
Copyright © 2008–2017 The Netty Project. All rights reserved.