Class StatKafkaProducer

Inheritance Relationships

Derived Type

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