Class ConcurrentKafkaListenerContainerFactoryConfigurer
java.lang.Object
org.springframework.boot.autoconfigure.kafka.ConcurrentKafkaListenerContainerFactoryConfigurer
Configure
ConcurrentKafkaListenerContainerFactory with sensible defaults.- Since:
- 1.5.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.springframework.kafka.config.ConcurrentKafkaListenerContainerFactory<Object, Object> listenerFactory, org.springframework.kafka.core.ConsumerFactory<Object, Object> consumerFactory) Configure the specified Kafka listener container factory.voidsetCommonErrorHandler(org.springframework.kafka.listener.CommonErrorHandler commonErrorHandler) Set theCommonErrorHandlerto use.
-
Constructor Details
-
ConcurrentKafkaListenerContainerFactoryConfigurer
public ConcurrentKafkaListenerContainerFactoryConfigurer()
-
-
Method Details
-
setCommonErrorHandler
public void setCommonErrorHandler(org.springframework.kafka.listener.CommonErrorHandler commonErrorHandler) Set theCommonErrorHandlerto 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- theConcurrentKafkaListenerContainerFactoryinstance to configureconsumerFactory- theConsumerFactoryto use
-