Writing A New Customer
@Slf4j
@Component
public class TradeLicenseConsumer {
private TLNotificationService notificationService;
@Autowired
public TradeLicenseConsumer(TLNotificationService notificationService) {
this.notificationService = notificationService;
}
@KafkaListener(topics = {"save-tl-tradelicense")
public void listen(final HashMap<String, Object> record, @Header(KafkaHeaders.RECEIVED_TOPIC) String topic) {
notificationService.sendNotification(record);
}
}@KafkaListener(topics = {"${persister.update.tradelicense.topic}")Last updated
Was this helpful?