public enum ProtocolVersion extends Enum<ProtocolVersion>
| Enum Constant and Description |
|---|
MQTTv3_1
The protocol version which indicates a MQTT 3.1 connection
|
MQTTv3_1_1
The protocol version which indicates a MQTT 3.1.1 connection
|
| Modifier and Type | Method and Description |
|---|---|
static ProtocolVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtocolVersion MQTTv3_1
public static final ProtocolVersion MQTTv3_1_1
public static ProtocolVersion[] values()
for (ProtocolVersion c : ProtocolVersion.values()) System.out.println(c);
public static ProtocolVersion 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 nullCopyright © 2013-2018 dc-square GmbH. All Rights Reserved.