public enum MqttQos extends Enum<MqttQos>
| Enum Constant and Description |
|---|
AT_LEAST_ONCE
QoS for ensuring at least once delivery.
|
AT_MOST_ONCE
QoS for at most once delivery according to the capabilities of the underlying network.
|
EXACTLY_ONCE
QoS for ensuring exactly once delivery.
|
| Modifier and Type | Method and Description |
|---|---|
static @Nullable MqttQos |
fromCode(int code)
Returns the QoS belonging to the given byte code.
|
int |
getCode() |
static MqttQos |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MqttQos[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MqttQos AT_MOST_ONCE
public static final MqttQos AT_LEAST_ONCE
public static final MqttQos EXACTLY_ONCE
public static MqttQos[] values()
for (MqttQos c : MqttQos.values()) System.out.println(c);
public static MqttQos 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 getCode()
@Nullable public static @Nullable MqttQos fromCode(int code)
code - the byte code.