Class RetryTopicConfigurationSupport.CustomizersConfigurer
java.lang.Object
org.springframework.kafka.retrytopic.RetryTopicConfigurationSupport.CustomizersConfigurer
- Enclosing class:
- RetryTopicConfigurationSupport
Configure customizers for components instantiated by the retry topics feature.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncustomizeDeadLetterPublishingRecoverer
(Consumer<DeadLetterPublishingRecoverer> dlprCustomizer) Customize theDeadLetterPublishingRecoverer
that will be used to forward the records to the retry topics and DLT.customizeErrorHandler
(Consumer<DefaultErrorHandler> errorHandlerCustomizer) Customize theCommonErrorHandler
instances that will be used for the feature.customizeListenerContainer
(Consumer<ConcurrentMessageListenerContainer<?, ?>> listenerContainerCustomizer) Customize theConcurrentMessageListenerContainer
instances created for the retry and DLT consumers.
-
Constructor Details
-
CustomizersConfigurer
public CustomizersConfigurer()
-
-
Method Details
-
customizeErrorHandler
public RetryTopicConfigurationSupport.CustomizersConfigurer customizeErrorHandler(Consumer<DefaultErrorHandler> errorHandlerCustomizer) Customize theCommonErrorHandler
instances that will be used for the feature.- Parameters:
errorHandlerCustomizer
- the customizer.- Returns:
- the configurer.
- See Also:
-
customizeListenerContainer
public RetryTopicConfigurationSupport.CustomizersConfigurer customizeListenerContainer(Consumer<ConcurrentMessageListenerContainer<?, ?>> listenerContainerCustomizer) Customize theConcurrentMessageListenerContainer
instances created for the retry and DLT consumers.- Parameters:
listenerContainerCustomizer
- the customizer.- Returns:
- the configurer.
-
customizeDeadLetterPublishingRecoverer
public RetryTopicConfigurationSupport.CustomizersConfigurer customizeDeadLetterPublishingRecoverer(Consumer<DeadLetterPublishingRecoverer> dlprCustomizer) Customize theDeadLetterPublishingRecoverer
that will be used to forward the records to the retry topics and DLT.- Parameters:
dlprCustomizer
- the customizer.- Returns:
- the configurer.
-