public enum QoS extends Enum<QoS>
Enum Constant and Description |
---|
AT_LEAST_ONCE |
AT_MOST_ONCE |
EXACTLY_ONCE |
Modifier and Type | Method and Description |
---|---|
String |
getLabel()
The readable name of QoS
|
int |
getValue()
The QoS value (0,1,2)
|
String |
toString() |
static QoS |
valueOf(int value) |
static QoS |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QoS[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QoS AT_MOST_ONCE
public static final QoS AT_LEAST_ONCE
public static final QoS EXACTLY_ONCE
public static QoS[] values()
for (QoS c : QoS.values()) System.out.println(c);
public static QoS 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 getValue()
public String getLabel()
public static QoS valueOf(int value)
value
- IllegalArgumentException
- if the value is invalidCopyright © 2018 Eclipse Paho. All rights reserved.