Enum Class DeliveryGuarantee
- All Implemented Interfaces:
Serializable
,Comparable<DeliveryGuarantee>
,Constable
Enumeration defining the possible delivery guarantees for entries.
- Since:
- 10.0
- Author:
- wburns
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe in between guarantee that provides a view of all data, but may return duplicates during a toplogy change.The least strict guarantee that ensures that data is never read more than once, but may be missed.The most strict guarantee that guarantees that an entry is seen exactly one time in results. -
Method Summary
Modifier and TypeMethodDescriptionstatic DeliveryGuarantee
valueOf
(int index) Returns the enum constant of this class with the specified name.static DeliveryGuarantee
Returns the enum constant of this class with the specified name.static DeliveryGuarantee[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AT_MOST_ONCE
The least strict guarantee that ensures that data is never read more than once, but may be missed. This guarantee is most performant as it never requires retrying data or returning extra data for the sake of consistency. However, under a stable topology this will return the same results asEXACTLY_ONCE
. -
AT_LEAST_ONCE
The in between guarantee that provides a view of all data, but may return duplicates during a toplogy change. This guarantee does not send identity values, but instead will retry an operation, most likely returning duplicates. However, under a stable topology this will return the same results asEXACTLY_ONCE
. -
EXACTLY_ONCE
The most strict guarantee that guarantees that an entry is seen exactly one time in results. This is the most expensive guarantee as it may require copying identity values to the originator (ie. keys) to ensure that a value is not returned more than once for a given key.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
index
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-