public enum Mqtt3MessageType extends Enum<Mqtt3MessageType>
Enum Constant and Description |
---|
CONNACK |
CONNECT |
DISCONNECT |
PINGREQ |
PINGRESP |
PUBACK |
PUBCOMP |
PUBLISH |
PUBREC |
PUBREL |
SUBACK |
SUBSCRIBE |
UNSUBACK |
UNSUBSCRIBE |
Modifier and Type | Method and Description |
---|---|
static @Nullable Mqtt3MessageType |
fromCode(int code)
Returns the MQTT message type belonging to the given byte code.
|
int |
getCode() |
static Mqtt3MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Mqtt3MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Mqtt3MessageType CONNECT
public static final Mqtt3MessageType CONNACK
public static final Mqtt3MessageType PUBLISH
public static final Mqtt3MessageType PUBACK
public static final Mqtt3MessageType PUBREC
public static final Mqtt3MessageType PUBREL
public static final Mqtt3MessageType PUBCOMP
public static final Mqtt3MessageType SUBSCRIBE
public static final Mqtt3MessageType SUBACK
public static final Mqtt3MessageType UNSUBSCRIBE
public static final Mqtt3MessageType UNSUBACK
public static final Mqtt3MessageType PINGREQ
public static final Mqtt3MessageType PINGRESP
public static final Mqtt3MessageType DISCONNECT
public static Mqtt3MessageType[] values()
for (Mqtt3MessageType c : Mqtt3MessageType.values()) System.out.println(c);
public static Mqtt3MessageType 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 getCode()
@Nullable public static @Nullable Mqtt3MessageType fromCode(int code)
code
- the byte code.null
if the byte code is not a
valid MQTT message type.