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 Summary
ConstructorDescriptionHvlEventKafkaConfiguration
(HvlEventTopicProperties eventTopicProperties, org.springframework.kafka.core.KafkaAdmin kafkaAdmin) Instantiates a new HvlEventConfiguration. -
Method Summary
Modifier and TypeMethodDescriptionvoid
org.springframework.boot.autoconfigure.kafka.DefaultKafkaProducerFactoryCustomizer
Kafka producer factory customizer default kafka producer factory customizer.org.apache.kafka.clients.admin.NewTopic
Notification mail topic new topic.Methods inherited from class tr.com.havelsan.javarch.configuration.HvlBaseConfiguration
info
-
Constructor Details
-
HvlEventKafkaConfiguration
public HvlEventKafkaConfiguration(HvlEventTopicProperties eventTopicProperties, org.springframework.kafka.core.KafkaAdmin kafkaAdmin) Instantiates a new HvlEventConfiguration.- Parameters:
eventTopicProperties
- the event topic propertieskafkaAdmin
- the kafka admin
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceorg.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
-