Interface KafkaListenerConfigurer
-
public interface KafkaListenerConfigurerOptional interface to be implemented by Spring managed bean willing to customize how Kafka listener endpoints are configured. Typically used to defined the defaultKafkaListenerContainerFactoryto use or for registering Kafka endpoints in a programmatic fashion as opposed to the declarative approach of using the @KafkaListenerannotation.See @
EnableKafkafor detailed usage examples.- Author:
- Stephane Nicoll
- See Also:
EnableKafka,KafkaListenerEndpointRegistrar
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconfigureKafkaListeners(KafkaListenerEndpointRegistrar registrar)Callback allowing aKafkaListenerEndpointRegistryand specificKafkaListenerEndpointinstances to be registered against the givenKafkaListenerEndpointRegistrar.
-
-
-
Method Detail
-
configureKafkaListeners
void configureKafkaListeners(KafkaListenerEndpointRegistrar registrar)
Callback allowing aKafkaListenerEndpointRegistryand specificKafkaListenerEndpointinstances to be registered against the givenKafkaListenerEndpointRegistrar. The defaultKafkaListenerContainerFactorycan also be customized.- Parameters:
registrar- the registrar to be configured
-
-