Class DestinationTopicPropertiesFactory
java.lang.Object
org.springframework.kafka.retrytopic.DestinationTopicPropertiesFactory
Creates a list of
DestinationTopic.Properties
based on the
provided configurations.- Since:
- 2.7
- Author:
- Tomaz Fernandes, Gary Russell, João Lima
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
ConstructorDescriptionDestinationTopicPropertiesFactory
(String retryTopicSuffix, String dltSuffix, List<Long> backOffValues, org.springframework.classify.BinaryExceptionClassifier exceptionClassifier, int numPartitions, KafkaOperations<?, ?> kafkaOperations, DltStrategy dltStrategy, TopicSuffixingStrategy topicSuffixingStrategy, SameIntervalTopicReuseStrategy sameIntervalTopicReuseStrategy, long timeout) Construct an instance with the provided properties.DestinationTopicPropertiesFactory
(String retryTopicSuffix, String dltSuffix, List<Long> backOffValues, org.springframework.classify.BinaryExceptionClassifier exceptionClassifier, int numPartitions, KafkaOperations<?, ?> kafkaOperations, FixedDelayStrategy fixedDelayStrategy, DltStrategy dltStrategy, TopicSuffixingStrategy topicSuffixingStrategy, long timeout) Deprecated.DestinationTopicPropertiesFactory
(String retryTopicSuffix, String dltSuffix, List<Long> backOffValues, org.springframework.classify.BinaryExceptionClassifier exceptionClassifier, int numPartitions, KafkaOperations<?, ?> kafkaOperations, FixedDelayStrategy fixedDelayStrategy, DltStrategy dltStrategy, TopicSuffixingStrategy topicSuffixingStrategy, SameIntervalTopicReuseStrategy sameIntervalTopicReuseStrategy, long timeout) -
Method Summary
Modifier and TypeMethodDescriptionautoStartDltHandler
(Boolean autoStart) Set to false to not start the DLT handler.
-
Constructor Details
-
DestinationTopicPropertiesFactory
public DestinationTopicPropertiesFactory(String retryTopicSuffix, String dltSuffix, List<Long> backOffValues, org.springframework.classify.BinaryExceptionClassifier exceptionClassifier, int numPartitions, KafkaOperations<?, ?> kafkaOperations, DltStrategy dltStrategy, TopicSuffixingStrategy topicSuffixingStrategy, SameIntervalTopicReuseStrategy sameIntervalTopicReuseStrategy, long timeout) Construct an instance with the provided properties.- Parameters:
retryTopicSuffix
- the suffix.dltSuffix
- the dlt suffix.backOffValues
- the back off values.exceptionClassifier
- the exception classifier.numPartitions
- the number of partitions.kafkaOperations
- the operations.dltStrategy
- the dlt strategy.topicSuffixingStrategy
- the topic suffixing strategy.sameIntervalTopicReuseStrategy
- the same interval reuse strategy.timeout
- the timeout.- Since:
- 3.0.12
-
DestinationTopicPropertiesFactory
@Deprecated public DestinationTopicPropertiesFactory(String retryTopicSuffix, String dltSuffix, List<Long> backOffValues, org.springframework.classify.BinaryExceptionClassifier exceptionClassifier, int numPartitions, KafkaOperations<?, ?> kafkaOperations, FixedDelayStrategy fixedDelayStrategy, DltStrategy dltStrategy, TopicSuffixingStrategy topicSuffixingStrategy, long timeout) Deprecated.Construct an instance with the provided properties.- Parameters:
retryTopicSuffix
- the suffix.dltSuffix
- the dlt suffix.backOffValues
- the back off values.exceptionClassifier
- the exception classifier.numPartitions
- the number of partitions.kafkaOperations
- the operations.fixedDelayStrategy
- the fixed delay strategy.dltStrategy
- the dlt strategy.topicSuffixingStrategy
- the topic suffixing strategy.timeout
- the timeout.
-
DestinationTopicPropertiesFactory
@Deprecated public DestinationTopicPropertiesFactory(String retryTopicSuffix, String dltSuffix, List<Long> backOffValues, org.springframework.classify.BinaryExceptionClassifier exceptionClassifier, int numPartitions, KafkaOperations<?, ?> kafkaOperations, FixedDelayStrategy fixedDelayStrategy, DltStrategy dltStrategy, TopicSuffixingStrategy topicSuffixingStrategy, SameIntervalTopicReuseStrategy sameIntervalTopicReuseStrategy, long timeout) Deprecated.Construct an instance with the provided properties.- Parameters:
retryTopicSuffix
- the suffix.dltSuffix
- the dlt suffix.backOffValues
- the back off values.exceptionClassifier
- the exception classifier.numPartitions
- the number of partitions.kafkaOperations
- the operations.fixedDelayStrategy
- the fixed delay strategy.dltStrategy
- the dlt strategy.topicSuffixingStrategy
- the topic suffixing strategy.sameIntervalTopicReuseStrategy
- the same interval reuse strategy.timeout
- the timeout.
-
-
Method Details
-
autoStartDltHandler
Set to false to not start the DLT handler.- Parameters:
autoStart
- false to not start.- Returns:
- this factory.
- Since:
- 2.8
-
createProperties
-
DestinationTopicPropertiesFactory(String, String, List, BinaryExceptionClassifier, int, KafkaOperations, DltStrategy, TopicSuffixingStrategy, SameIntervalTopicReuseStrategy, long)