Class HvlEventKafkaConfiguration

java.lang.Object
tr.com.havelsan.javarch.configuration.HvlBaseConfiguration
tr.com.havelsan.javarch.oauth.event.starter.configuration.HvlEventKafkaConfiguration
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

@Configuration @EnableConfigurationProperties(HvlEventTopicProperties.class) @ConditionalOnProperty("hvl.core.kafka.support.enabled") public class HvlEventKafkaConfiguration extends tr.com.havelsan.javarch.configuration.HvlBaseConfiguration implements org.springframework.beans.factory.InitializingBean
Configuration for event kafka configuration.
  • Constructor Details

    • HvlEventKafkaConfiguration

      public HvlEventKafkaConfiguration(HvlEventTopicProperties eventTopicProperties, org.springframework.kafka.core.KafkaAdmin kafkaAdmin)
      Instantiates a new HvlEventConfiguration.
      Parameters:
      eventTopicProperties - the event topic properties
      kafkaAdmin - the kafka admin
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • notificationMailTopic

      @Bean public org.apache.kafka.clients.admin.NewTopic notificationMailTopic()
      Notification mail topic new topic.
      Returns:
      the new topic
    • kafkaProducerFactoryCustomizer

      @Bean public org.springframework.boot.autoconfigure.kafka.DefaultKafkaProducerFactoryCustomizer kafkaProducerFactoryCustomizer()
      Kafka producer factory customizer default kafka producer factory customizer.
      Returns:
      the default kafka producer factory customizer