@Configuration @EnableConfigurationProperties(value={org.springframework.boot.autoconfigure.kafka.KafkaProperties.class,KafkaItemWriterProperties.class}) @AutoConfigureAfter(value=org.springframework.boot.autoconfigure.batch.BatchAutoConfiguration.class) public class KafkaItemWriterAutoConfiguration extends Object
KafkaItemReader
.Constructor and Description |
---|
KafkaItemWriterAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.core.convert.converter.Converter<Map<String,Object>,Object> |
batchItemKeyMapper() |
org.springframework.batch.item.kafka.KafkaItemWriter<Object,Map<String,Object>> |
kafkaItemWriter(KafkaItemWriterProperties kafkaItemWriterProperties,
org.springframework.kafka.core.ProducerFactory<Object,Map<String,Object>> producerFactory,
org.springframework.core.convert.converter.Converter<Map<String,Object>,Object> itemKeyMapper) |
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="spring.batch.job.kafkaitemwriter", name="topic") public org.springframework.batch.item.kafka.KafkaItemWriter<Object,Map<String,Object>> kafkaItemWriter(KafkaItemWriterProperties kafkaItemWriterProperties, org.springframework.kafka.core.ProducerFactory<Object,Map<String,Object>> producerFactory, @Qualifier(value="batchItemKeyMapper") org.springframework.core.convert.converter.Converter<Map<String,Object>,Object> itemKeyMapper)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.