java.lang.Object
callofproject.dev.service.notification.config.kafka.KafkaConsumer

@Component public class KafkaConsumer extends Object
Kafka consumer.
  • Constructor Details

    • KafkaConsumer

      public KafkaConsumer(NotificationService notificationService, org.springframework.messaging.simp.SimpMessagingTemplate messagingTemplate)
      Constructor.
      Parameters:
      notificationService - The notification service.
      messagingTemplate - The messaging template.
  • Method Details

    • projectServiceListener

      @KafkaListener(topics="${spring.kafka.consumer.topic-name}", groupId="${spring.kafka.consumer.group-id}") public void projectServiceListener(NotificationUserResponseDTO message)
      Listen to the Kafka topic.
      Parameters:
      message - The message.