Class StatKafkaProducer
Defined in File StatKafkaProducer.h
Inheritance Relationships
Derived Type
public ska::pst::stat::CppKafkaProducer(Class CppKafkaProducer)
Class Documentation
-
class StatKafkaProducer
An abstract class to send messages to Kafka.
This class is used to add a layer of abstraction over the chose Kafka library (currently cppkafka)
Subclassed by ska::pst::stat::CppKafkaProducer
Public Functions
-
virtual void send(const std::string &topic, const std::string &payload) = 0
Send a message to a Kafka topic.
- Parameters
topic – the topic to send the message to
payload – the message payload
-
virtual void send(const std::string &topic, const std::string &payload) = 0