public enum QoS extends Enum<QoS>
| Enum Constant and Description |
|---|
AT_LEAST_ONCE
At least once delivery.
|
AT_MOST_ONCE
At most once delivery.
|
EXACTLY_ONCE
At exactly once delivery.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getQosNumber() |
static QoS |
valueOf(int i)
Creates a QoS level enum from an integer
|
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 getQosNumber()
Copyright © 2013-2018 dc-square GmbH. All Rights Reserved.