mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-02 11:37:50 +00:00
Add more wrappers for Consumer
This commit is contained in:
@@ -23,14 +23,18 @@ public:
|
||||
void unsubscribe();
|
||||
|
||||
void assign(const TopicPartitionList& topic_partitions);
|
||||
void close();
|
||||
|
||||
void commit(const Message& msg);
|
||||
void async_commit(const Message& msg);
|
||||
void commit(const TopicPartitionList& topic_partitions);
|
||||
void async_commit(const TopicPartitionList& topic_partitions);
|
||||
|
||||
TopicPartitionList get_committed(const TopicPartitionList& topic_partitions);
|
||||
TopicPartitionList get_position(const TopicPartitionList& topic_partitions);
|
||||
TopicPartitionList get_offsets_committed(const TopicPartitionList& topic_partitions);
|
||||
TopicPartitionList get_offsets_position(const TopicPartitionList& topic_partitions);
|
||||
TopicPartitionList get_subscription();
|
||||
TopicPartitionList get_assignment();
|
||||
|
||||
|
||||
Message poll();
|
||||
private:
|
||||
|
@@ -13,6 +13,7 @@ class TopicPartition;
|
||||
class TopicPartitionList {
|
||||
public:
|
||||
TopicPartitionList();
|
||||
TopicPartitionList(rd_kafka_topic_partition_list_t* handle);
|
||||
TopicPartitionList(size_t size);
|
||||
template <typename ForwardIterator>
|
||||
TopicPartitionList(ForwardIterator start, const ForwardIterator& end)
|
||||
|
Reference in New Issue
Block a user