Enum Class TopicSuffixingStrategy
- All Implemented Interfaces:
Serializable
,Comparable<TopicSuffixingStrategy>
,Constable
Constants for the RetryTopic functionality.
- Since:
- 2.7
- Author:
- Tomaz Fernandes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSuffixes the topics the delay value for the topic.Suffixes the topics with their index in the retry topics. -
Method Summary
Modifier and TypeMethodDescriptionstatic TopicSuffixingStrategy
Returns the enum constant of this class with the specified name.static TopicSuffixingStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUFFIX_WITH_INDEX_VALUE
Suffixes the topics with their index in the retry topics. E.g. my-retry-topic-0, my-retry-topic-1, my-retry-topic-2. -
SUFFIX_WITH_DELAY_VALUE
Suffixes the topics the delay value for the topic. E.g. my-retry-topic-1000, my-retry-topic-2000, my-retry-topic-4000.
-
-
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
-