net.sf.xenqtt.message
Enum MessageType
java.lang.Object
java.lang.Enum<MessageType>
net.sf.xenqtt.message.MessageType
- All Implemented Interfaces:
- Serializable, Comparable<MessageType>
public enum MessageType
- extends Enum<MessageType>
MQTT Message types. The order must not be changed as the enum ordinal() is the numeric value of the message type.
UNUSED_0
public static final MessageType UNUSED_0
CONNECT
public static final MessageType CONNECT
CONNACK
public static final MessageType CONNACK
PUBLISH
public static final MessageType PUBLISH
PUBACK
public static final MessageType PUBACK
PUBREC
public static final MessageType PUBREC
PUBREL
public static final MessageType PUBREL
PUBCOMP
public static final MessageType PUBCOMP
SUBSCRIBE
public static final MessageType SUBSCRIBE
SUBACK
public static final MessageType SUBACK
UNSUBSCRIBE
public static final MessageType UNSUBSCRIBE
UNSUBACK
public static final MessageType UNSUBACK
PINGREQ
public static final MessageType PINGREQ
PINGRESP
public static final MessageType PINGRESP
DISCONNECT
public static final MessageType DISCONNECT
UNUSED_15
public static final MessageType UNUSED_15
values
public static MessageType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (MessageType c : MessageType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MessageType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
lookup
public static MessageType lookup(int value)
- Returns:
- The
MessageType
associated with the specified numeric value.
value
public int value()
- Returns:
- The numeric value for this
MessageType
Copyright © 2013. All Rights Reserved.