Class QOS
java.lang.Object
de.uplanet.lucy.server.mqtt.workflow.QOS
Quality of service as defined in the
MQTT specification.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
QoS 1: At least once delivery.static final int
QoS 0: At most once delivery.static final int
QoS 2: Exactly once delivery. -
Method Summary
Modifier and TypeMethodDescriptionstatic int
checkValidQoS
(int p_iQoS) Check if the given value is valid according to the specification.static boolean
isValidQoS
(int p_iQoS) Test if the given value is valid according to the specification.
-
Field Details
-
AT_MOST_ONCE_DELIVERY
public static final int AT_MOST_ONCE_DELIVERYQoS 0: At most once delivery.- See Also:
-
AT_LEAST_ONCE_DELIVERY
public static final int AT_LEAST_ONCE_DELIVERYQoS 1: At least once delivery.- See Also:
-
EXACTLY_ONCE_DELIVERY
public static final int EXACTLY_ONCE_DELIVERYQoS 2: Exactly once delivery.- See Also:
-
-
Method Details
-
checkValidQoS
Check if the given value is valid according to the specification.- Parameters:
p_iQoS
- The value to be tested.- Returns:
- The given value.
- Throws:
WorkflowConfigurationException
- If the given value is not a valid QoS.
-
isValidQoS
public static boolean isValidQoS(int p_iQoS) Test if the given value is valid according to the specification.- Parameters:
p_iQoS
- The value to be tested.- Returns:
true
if the given value is a valid QoS value, orfalse
otherwise.
-