Enum Class TopicSuffixingStrategy

java.lang.Object
java.lang.Enum<TopicSuffixingStrategy>
org.springframework.kafka.retrytopic.TopicSuffixingStrategy
All Implemented Interfaces:
Serializable, Comparable<TopicSuffixingStrategy>, Constable

public enum TopicSuffixingStrategy extends Enum<TopicSuffixingStrategy>
Constants for the RetryTopic functionality.
Since:
2.7
Author:
Tomaz Fernandes
  • Enum Constant Details

    • SUFFIX_WITH_INDEX_VALUE

      public static final TopicSuffixingStrategy 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

      public static final TopicSuffixingStrategy 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

      public static TopicSuffixingStrategy[] 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

      public static TopicSuffixingStrategy valueOf(String name)
      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 name
      NullPointerException - if the argument is null