@Configuration @ConditionalOnClass(value=org.springframework.kafka.core.KafkaTemplate.class) @EnableConfigurationProperties(value=KafkaProperties.class) @Import(value=org.springframework.boot.autoconfigure.kafka.KafkaAnnotationDrivenConfiguration.class) public class KafkaAutoConfiguration extends Object
Auto-configuration
for Apache Kafka.Constructor and Description |
---|
KafkaAutoConfiguration(KafkaProperties properties,
org.springframework.beans.factory.ObjectProvider<org.springframework.kafka.support.converter.RecordMessageConverter> messageConverter) |
Modifier and Type | Method and Description |
---|---|
org.springframework.kafka.core.KafkaAdmin |
kafkaAdmin() |
org.springframework.kafka.core.ConsumerFactory<?,?> |
kafkaConsumerFactory() |
org.springframework.kafka.security.jaas.KafkaJaasLoginModuleInitializer |
kafkaJaasInitializer() |
org.springframework.kafka.core.ProducerFactory<?,?> |
kafkaProducerFactory() |
org.springframework.kafka.support.ProducerListener<Object,Object> |
kafkaProducerListener() |
org.springframework.kafka.core.KafkaTemplate<?,?> |
kafkaTemplate(org.springframework.kafka.core.ProducerFactory<Object,Object> kafkaProducerFactory,
org.springframework.kafka.support.ProducerListener<Object,Object> kafkaProducerListener) |
public KafkaAutoConfiguration(KafkaProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.kafka.support.converter.RecordMessageConverter> messageConverter)
@Bean @ConditionalOnMissingBean(value=org.springframework.kafka.core.KafkaTemplate.class) public org.springframework.kafka.core.KafkaTemplate<?,?> kafkaTemplate(org.springframework.kafka.core.ProducerFactory<Object,Object> kafkaProducerFactory, org.springframework.kafka.support.ProducerListener<Object,Object> kafkaProducerListener)
@Bean @ConditionalOnMissingBean(value=org.springframework.kafka.support.ProducerListener.class) public org.springframework.kafka.support.ProducerListener<Object,Object> kafkaProducerListener()
@Bean @ConditionalOnMissingBean(value=org.springframework.kafka.core.ConsumerFactory.class) public org.springframework.kafka.core.ConsumerFactory<?,?> kafkaConsumerFactory()
@Bean @ConditionalOnMissingBean(value=org.springframework.kafka.core.ProducerFactory.class) public org.springframework.kafka.core.ProducerFactory<?,?> kafkaProducerFactory()
@Bean @ConditionalOnProperty(name="spring.kafka.jaas.enabled") @ConditionalOnMissingBean public org.springframework.kafka.security.jaas.KafkaJaasLoginModuleInitializer kafkaJaasInitializer() throws IOException
IOException
@Bean @ConditionalOnMissingBean(value=org.springframework.kafka.core.KafkaAdmin.class) public org.springframework.kafka.core.KafkaAdmin kafkaAdmin()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.