mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-01 11:07:56 +00:00
Allow getting consumer group information
This commit is contained in:
@@ -50,6 +50,7 @@ namespace cppkafka {
|
||||
class Topic;
|
||||
class Metadata;
|
||||
class TopicMetadata;
|
||||
class GroupInformation;
|
||||
|
||||
/**
|
||||
* Base class for kafka consumer/producer
|
||||
@@ -155,6 +156,18 @@ public:
|
||||
*/
|
||||
TopicMetadata get_metadata(const Topic& topic) const;
|
||||
|
||||
/**
|
||||
* Gets the consumer group information
|
||||
*
|
||||
* \param name The name of the consumer group to look up
|
||||
*/
|
||||
GroupInformation get_consumer_group(const std::string& name);
|
||||
|
||||
/**
|
||||
* Gets all consumer groups
|
||||
*/
|
||||
std::vector<GroupInformation> get_consumer_groups();
|
||||
|
||||
/**
|
||||
* \brief Gets topic/partition offsets based on timestamps
|
||||
*
|
||||
@@ -201,6 +214,7 @@ private:
|
||||
|
||||
Topic get_topic(const std::string& name, rd_kafka_topic_conf_t* conf);
|
||||
Metadata get_metadata(bool all_topics, rd_kafka_topic_t* topic_ptr) const;
|
||||
std::vector<GroupInformation> fetch_consumer_groups(const char* name);
|
||||
void save_topic_config(const std::string& topic_name, TopicConfiguration config);
|
||||
|
||||
HandlePtr handle_;
|
||||
|
||||
Reference in New Issue
Block a user