Class RetryTopicConfigurationSupport.CustomizersConfigurer
- java.lang.Object
-
- org.springframework.kafka.retrytopic.RetryTopicConfigurationSupport.CustomizersConfigurer
-
- Enclosing class:
- RetryTopicConfigurationSupport
public static class RetryTopicConfigurationSupport.CustomizersConfigurer extends java.lang.Object
Configure customizers for components instantiated by the retry topics feature.
-
-
Constructor Summary
Constructors Constructor Description CustomizersConfigurer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RetryTopicConfigurationSupport.CustomizersConfigurer
customizeDeadLetterPublishingRecoverer(java.util.function.Consumer<DeadLetterPublishingRecoverer> dlprCustomizer)
Customize theDeadLetterPublishingRecoverer
that will be used to forward the records to the retry topics and DLT.RetryTopicConfigurationSupport.CustomizersConfigurer
customizeErrorHandler(java.util.function.Consumer<DefaultErrorHandler> errorHandlerCustomizer)
Customize theCommonErrorHandler
instances that will be used for the feature.RetryTopicConfigurationSupport.CustomizersConfigurer
customizeListenerContainer(java.util.function.Consumer<ConcurrentMessageListenerContainer<?,?>> listenerContainerCustomizer)
Customize theConcurrentMessageListenerContainer
instances created for the retry and DLT consumers.
-
-
-
Method Detail
-
customizeErrorHandler
public RetryTopicConfigurationSupport.CustomizersConfigurer customizeErrorHandler(java.util.function.Consumer<DefaultErrorHandler> errorHandlerCustomizer)
Customize theCommonErrorHandler
instances that will be used for the feature.- Parameters:
errorHandlerCustomizer
- the customizer.- Returns:
- the configurer.
- See Also:
DefaultErrorHandler
-
customizeListenerContainer
public RetryTopicConfigurationSupport.CustomizersConfigurer customizeListenerContainer(java.util.function.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(java.util.function.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.
-
-