Package io.joynr.messaging
Enum MessagingQosEffort
- java.lang.Object
-
- java.lang.Enum<MessagingQosEffort>
-
- io.joynr.messaging.MessagingQosEffort
-
- All Implemented Interfaces:
Serializable,Comparable<MessagingQosEffort>
public enum MessagingQosEffort extends Enum<MessagingQosEffort>
Used inMessagingQosto describe how much effort should be expent on ensuring the delivery of the message.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BEST_EFFORTBest effort means that the messaging system will ensure the message is sent out, but will not guarantee that it is received, also meaning the message is not persisted awaiting delivery if the receiver is not currently online.NORMALNormal effort means that the messaging system will guarantee delivery of the message, including temporarily persisting the message as necessary if the receiver is not currently online.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MessagingQosEffortvalueOf(String name)Returns the enum constant of this type with the specified name.static MessagingQosEffort[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NORMAL
public static final MessagingQosEffort NORMAL
Normal effort means that the messaging system will guarantee delivery of the message, including temporarily persisting the message as necessary if the receiver is not currently online. Also known as 'at least once'.
-
BEST_EFFORT
public static final MessagingQosEffort BEST_EFFORT
Best effort means that the messaging system will ensure the message is sent out, but will not guarantee that it is received, also meaning the message is not persisted awaiting delivery if the receiver is not currently online. Also known as 'at most once' or 'fire and forget'.
-
-
Method Detail
-
values
public static MessagingQosEffort[] 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 (MessagingQosEffort c : MessagingQosEffort.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MessagingQosEffort 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
-
-