Class KafkaConsumer
java.lang.Object
callofproject.dev.service.notification.config.kafka.KafkaConsumer
Kafka consumer.
-
Constructor Summary
ConstructorsConstructorDescriptionKafkaConsumer
(NotificationService notificationService, org.springframework.messaging.simp.SimpMessagingTemplate messagingTemplate) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Listen to the Kafka topic.
-
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.
-