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 intQoS 1: At least once delivery.static final intQoS 0: At most once delivery.static final intQoS 2: Exactly once delivery. -
Method Summary
Modifier and TypeMethodDescriptionstatic intcheckValidQoS(int p_iQoS) Check if the given value is valid according to the specification.static booleanisValidQoS(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:
trueif the given value is a valid QoS value, orfalseotherwise.
-