Class ConcurrentKafkaListenerContainerFactoryConfigurer
java.lang.Object
org.springframework.boot.autoconfigure.kafka.ConcurrentKafkaListenerContainerFactoryConfigurer
Configure
ConcurrentKafkaListenerContainerFactory
with sensible defaults.- Since:
- 1.5.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(org.springframework.kafka.config.ConcurrentKafkaListenerContainerFactory<Object, Object> listenerFactory, org.springframework.kafka.core.ConsumerFactory<Object, Object> consumerFactory) Configure the specified Kafka listener container factory.void
setCommonErrorHandler
(org.springframework.kafka.listener.CommonErrorHandler commonErrorHandler) Set theCommonErrorHandler
to use.
-
Constructor Details
-
ConcurrentKafkaListenerContainerFactoryConfigurer
public ConcurrentKafkaListenerContainerFactoryConfigurer()
-
-
Method Details
-
setCommonErrorHandler
public void setCommonErrorHandler(org.springframework.kafka.listener.CommonErrorHandler commonErrorHandler) Set theCommonErrorHandler
to use.- Parameters:
commonErrorHandler
- the error handler.- Since:
- 2.6.0
-
configure
public void configure(org.springframework.kafka.config.ConcurrentKafkaListenerContainerFactory<Object, Object> listenerFactory, org.springframework.kafka.core.ConsumerFactory<Object, Object> consumerFactory) Configure the specified Kafka listener container factory. The factory can be further tuned and default settings can be overridden.- Parameters:
listenerFactory
- theConcurrentKafkaListenerContainerFactory
instance to configureconsumerFactory
- theConsumerFactory
to use
-