mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-03 12:07:57 +00:00
Add offset commit and delivery report callbacks
This commit is contained in:
@@ -7,10 +7,10 @@
|
||||
#include <functional>
|
||||
#include "kafka_handle_base.h"
|
||||
#include "message.h"
|
||||
#include "configuration.h"
|
||||
|
||||
namespace cppkafka {
|
||||
|
||||
class Configuration;
|
||||
class TopicConfiguration;
|
||||
|
||||
class Consumer : public KafkaHandleBase {
|
||||
@@ -46,6 +46,7 @@ public:
|
||||
TopicPartitionList get_offsets_position(const TopicPartitionList& topic_partitions);
|
||||
TopicPartitionList get_subscription();
|
||||
TopicPartitionList get_assignment();
|
||||
const Configuration& get_configuration() const;
|
||||
|
||||
Message poll();
|
||||
private:
|
||||
@@ -59,6 +60,7 @@ private:
|
||||
AssignmentCallback assignment_callback_;
|
||||
RevocationCallback revocation_callback_;
|
||||
RebalanceErrorCallback rebalance_error_callback_;
|
||||
Configuration config_;
|
||||
};
|
||||
|
||||
} // cppkafka
|
||||
|
||||
Reference in New Issue
Block a user