Class ListenerContainerFactoryConfigurer

java.lang.Object
org.springframework.kafka.retrytopic.ListenerContainerFactoryConfigurer

public class ListenerContainerFactoryConfigurer extends Object
Decorates the provided ConcurrentKafkaListenerContainerFactory to add a DefaultErrorHandler and the DeadLetterPublishingRecoverer created by the DeadLetterPublishingRecovererFactory. Also sets ContainerProperties.setIdlePartitionEventInterval(Long) and ConsumerProperties.setPollTimeout(long) if its defaults haven't been overridden by the user. Since 2.8.3 these configurations don't interfere with the provided factory instance itself, so the same factory instance can be shared among retryable and non-retryable endpoints.
Since:
2.7
Author:
Tomaz Fernandes