Class KafkaProducer

java.lang.Object
callofproject.dev.community.config.kafka.KafkaProducer

@Service public class KafkaProducer extends Object
Author:
Nuri Can ÖZTÜRK Kafka Producer
  • Constructor Details

    • KafkaProducer

      public KafkaProducer(@Qualifier("notificationTopic") org.apache.kafka.clients.admin.NewTopic notificationTopic, org.springframework.kafka.core.KafkaTemplate<String,NotificationKafkaDTO> kafkaTemplate)
      Constructor
      Parameters:
      notificationTopic - topic
      kafkaTemplate - kafka template
  • Method Details

    • sendNotification

      public void sendNotification(NotificationKafkaDTO message)
      Send notification
      Parameters:
      message - message