public enum MqttProtocol extends Enum<MqttProtocol>
| Enum Constant and Description |
|---|
MQTT
MQTT (non-secure)
|
MQTTS
MQTT (secure)
|
TCP
TCP (non-secure)
|
| Modifier and Type | Field and Description |
|---|---|
static int |
MAJOR_VERSION |
static int |
MINOR_VERSION |
| Modifier and Type | Method and Description |
|---|---|
static MqttProtocol |
getEnumValue(Integer ordinal)
Get the matching enum for an ordinal number
|
Integer |
getOrdinal()
Get the matching ordinal number for this enum
|
static MqttProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MqttProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MqttProtocol TCP
public static final MqttProtocol MQTT
public static final MqttProtocol MQTTS
public static final int MAJOR_VERSION
public static final int MINOR_VERSION
public static MqttProtocol[] values()
for (MqttProtocol c : MqttProtocol.values()) System.out.println(c);
public static MqttProtocol 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 MqttProtocol getEnumValue(Integer ordinal)
ordinal - The ordinal numberpublic Integer getOrdinal()
Copyright © 2021. All rights reserved.