public enum MessageType extends Enum<MessageType>
| Enum Constant and Description |
|---|
CONNACK |
CONNECT |
DISCONNECT |
PINGREQ |
PINGRESP |
PUBACK |
PUBCOMP |
PUBLISH |
PUBREC |
PUBREL |
RESERVED_15 |
RESERVED_ZERO |
SUBACK |
SUBSCRIBE |
UNSUBACK |
UNSUBSCRIBE |
| Modifier and Type | Method and Description |
|---|---|
int |
getType() |
static MessageType |
valueOf(int i) |
static MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MessageType RESERVED_ZERO
public static final MessageType CONNECT
public static final MessageType CONNACK
public static final MessageType PUBLISH
public static final MessageType PUBACK
public static final MessageType PUBREC
public static final MessageType PUBREL
public static final MessageType PUBCOMP
public static final MessageType SUBSCRIBE
public static final MessageType SUBACK
public static final MessageType UNSUBSCRIBE
public static final MessageType UNSUBACK
public static final MessageType PINGREQ
public static final MessageType PINGRESP
public static final MessageType DISCONNECT
public static final MessageType RESERVED_15
public static MessageType[] values()
for (MessageType c : MessageType.values()) System.out.println(c);
public static MessageType 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 static MessageType valueOf(int i)
public int getType()
Copyright © 2013-2018 dc-square GmbH. All Rights Reserved.