Package org.eclipse.hono.util
Enum QoS
- java.lang.Object
-
- java.lang.Enum<QoS>
-
- org.eclipse.hono.util.QoS
-
- All Implemented Interfaces:
Serializable
,Comparable<QoS>
public enum QoS extends Enum<QoS>
Denotes the QoS level (in Hono's terms) with which a message was sent by the device.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AT_LEAST_ONCE
AT_MOST_ONCE
UNKNOWN
Indicates that the device set a QoS level which is not known or supported.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
values
public static QoS[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (QoS c : QoS.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QoS valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-