Class RetryTopicConfigurationSupport.CustomizersConfigurer
- java.lang.Object
-
- org.springframework.kafka.retrytopic.RetryTopicConfigurationSupport.CustomizersConfigurer
-
- Enclosing class:
- RetryTopicConfigurationSupport
public static class RetryTopicConfigurationSupport.CustomizersConfigurer extends java.lang.ObjectConfigure 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.CustomizersConfigurercustomizeDeadLetterPublishingRecoverer(java.util.function.Consumer<DeadLetterPublishingRecoverer> dlprCustomizer)Customize theDeadLetterPublishingRecovererthat will be used to forward the records to the retry topics and DLT.RetryTopicConfigurationSupport.CustomizersConfigurercustomizeErrorHandler(java.util.function.Consumer<DefaultErrorHandler> errorHandlerCustomizer)Customize theCommonErrorHandlerinstances that will be used for the feature.RetryTopicConfigurationSupport.CustomizersConfigurercustomizeListenerContainer(java.util.function.Consumer<ConcurrentMessageListenerContainer<?,?>> listenerContainerCustomizer)Customize theConcurrentMessageListenerContainerinstances created for the retry and DLT consumers.
-
-
-
Method Detail
-
customizeErrorHandler
public RetryTopicConfigurationSupport.CustomizersConfigurer customizeErrorHandler(java.util.function.Consumer<DefaultErrorHandler> errorHandlerCustomizer)
Customize theCommonErrorHandlerinstances 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 theConcurrentMessageListenerContainerinstances 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 theDeadLetterPublishingRecovererthat will be used to forward the records to the retry topics and DLT.- Parameters:
dlprCustomizer- the customizer.- Returns:
- the configurer.
-
-