Package: org.egov.works.service
Source File: NotificationConsumerService.java
Dependencies: Spring Framework, Kafka, Lombok
The NotificationConsumerService class is responsible for routing Kafka messages to specific service components based on the topic they belong to within the eGov Works module.
contractNotificationService: Service for processing contract-related notifications.
estimateNotificationService: Service for processing estimate-related notifications.
notificationServiceConfiguration: Configuration settings for notification services.
expenseNotificationService: Service for processing expense-related notifications.
musterRollNotificationService: Service for processing muster roll related notifications.
measurementNotificationService: Service for processing measurement related notifications.
organizationNotificationService: Service for processing organization related notifications.
individualNotificationService: Service for processing individual related notifications.
fetchServiceBasedOnTopic(final String record, @Header(KafkaHeaders.RECEIVED_TOPIC) String topic): Determines the appropriate service handler based on the topic of the received message and delegates the message processing to that specific service.
Instantiate and configure the NotificationConsumer class within the application context to enable message consumption from Kafka topics. Ensure that the NotificationConsumerService class is properly injected into the NotificationConsumer class for seamless message processing.