Add more producer stuff

This commit is contained in:
Matias Fontanini
2016-05-17 18:51:30 -07:00
parent 1cc8f027c9
commit 5848bccdb8
7 changed files with 40 additions and 25 deletions

View File

@@ -16,7 +16,7 @@ public:
rd_kafka_t* get_handle();
Topic get_topic(const std::string& name);
Topic get_topic(const std::string& name, const TopicConfiguration& config);
Topic get_topic(const std::string& name, TopicConfiguration config);
protected:
KafkaHandleBase();
KafkaHandleBase(rd_kafka_t* handle);
@@ -25,6 +25,8 @@ protected:
private:
using HandlePtr = std::unique_ptr<rd_kafka_t, decltype(&rd_kafka_destroy)>;
Topic get_topic(const std::string& name, rd_kafka_topic_conf_t* conf);
HandlePtr handle_;
};