Class ConcurrentKafkaListenerContainerFactory<K,​V>

  • Type Parameters:
    K - the key type.
    V - the value type.
    All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationEventPublisherAware, KafkaListenerContainerFactory<ConcurrentMessageListenerContainer<K,​V>>

    public class ConcurrentKafkaListenerContainerFactory<K,​V>
    extends AbstractKafkaListenerContainerFactory<ConcurrentMessageListenerContainer<K,​V>,​K,​V>
    A KafkaListenerContainerFactory implementation to build a ConcurrentMessageListenerContainer.

    This should be the default for most users and a good transition paths for those that are used to building such container definitions manually. This factory is primarily for building containers for KafkaListener annotated methods but can also be used to create any container. Only containers for KafkaListener annotated methods are added to the KafkaListenerEndpointRegistry.

    Author:
    Stephane Nicoll, Gary Russell, Artem Bilan, Murali Reddy