Class Config


  • @Configuration
    @EnableKafka
    public class Config
    extends java.lang.Object
    Code snippet for quick start.
    Since:
    2.7
    Author:
    Gary Russell
    • Constructor Detail

      • Config

        public Config()
    • Method Detail

      • consumerFactory

        @Bean
        public ConsumerFactory<java.lang.Integer,​java.lang.String> consumerFactory()
      • sender

        @Bean
        public Sender sender​(KafkaTemplate<java.lang.Integer,​java.lang.String> template)
      • listener

        @Bean
        public Listener listener()
      • producerFactory

        @Bean
        public ProducerFactory<java.lang.Integer,​java.lang.String> producerFactory()
      • kafkaTemplate

        @Bean
        public KafkaTemplate<java.lang.Integer,​java.lang.String> kafkaTemplate​(ProducerFactory<java.lang.Integer,​java.lang.String> producerFactory)