mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-01 11:07:56 +00:00
Add some other methods to TopicPartitionList
This commit is contained in:
@@ -28,6 +28,10 @@ public:
|
||||
TopicPartitionList& operator=(TopicPartitionList&&) = default;
|
||||
|
||||
void add(const TopicPartition& topic_partition);
|
||||
void update(const TopicPartition& topic_partition);
|
||||
bool remove(const TopicPartition& topic_partition);
|
||||
|
||||
bool contains(const TopicPartition& topic_partition) const;
|
||||
size_t size() const;
|
||||
bool empty() const;
|
||||
|
||||
@@ -40,6 +44,8 @@ private:
|
||||
|
||||
static HandlePtr make_handle(rd_kafka_topic_partition_list_t* ptr);
|
||||
|
||||
rd_kafka_topic_partition_t* get_topic_partition(const TopicPartition& topic_partition) const;
|
||||
|
||||
HandlePtr handle_;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user