com.infusers.core.email.kafka.KafkaProducer Maven / Gradle / Ivy
/*package com.infusers.core.email.kafka;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Component;
import com.infusers.core.email.EmailMessage;
@Component
public class KafkaProducer {
@Value("${kafka.consumer.topic}")
private String topic;
@Autowired
private KafkaTemplate kafkaTemplate;
public void sendMessage(EmailMessage eMessage) {
kafkaTemplate.send(topic, eMessage);
}
}*/
© 2015 - 2025 Weber Informatics LLC | Privacy Policy