Class KafkaNotificationConfiguration

java.lang.Object
org.qubership.atp.environments.config.KafkaNotificationConfiguration

@Configuration public class KafkaNotificationConfiguration extends Object
  • Field Details

    • kafkaEnvironmentsProducerTopic

      @Value("${kafka.environments.topic}") public String kafkaEnvironmentsProducerTopic
    • kafkaSystemsProducerTopic

      @Value("${kafka.systems.topic}") public String kafkaSystemsProducerTopic
  • Constructor Details

    • KafkaNotificationConfiguration

      public KafkaNotificationConfiguration()
  • Method Details

    • projectEventListener

      @Bean public ProjectEventListener projectEventListener(ProjectService projectService)
      Creates project event listener.
      Returns:
      ProjectEventListener
    • environmentEventNotificationService

      @Bean public EventNotificationService environmentEventNotificationService(org.springframework.kafka.core.KafkaTemplate<UUID,String> kafkaTemplate)
      Creates EnvironmentEventNotificationService.
      Parameters:
      kafkaTemplate - - kafka template
      Returns:
      - ProjectEventNotificationService.
    • systemEventNotificationService

      @Bean public EventNotificationService systemEventNotificationService(org.springframework.kafka.core.KafkaTemplate<UUID,String> kafkaTemplate)
      Creates SystemEventNotificationService.
      Parameters:
      kafkaTemplate - - kafka template
      Returns:
      - ProjectEventNotificationService.
    • connectionEventNotificationService

      @Bean public EventNotificationService connectionEventNotificationService(org.springframework.kafka.core.KafkaTemplate<UUID,String> kafkaTemplate)
      Creates ConnectionEventNotificationService.
      Parameters:
      kafkaTemplate - - kafka template
      Returns:
      - ProjectEventNotificationService.