mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-02 19:47:55 +00:00
Added access to the internal Consumer in the backoff committer (#75)
* Added access to the internal Consumer and provided non-default constructor for BackoffPerformer * added sync_produce and deleted the value constructor * removed sync_produce methods * removed value constructor in backoff_performer class
This commit is contained in:
committed by
Matias Fontanini
parent
9714bec5bf
commit
5cad740aea
@@ -75,7 +75,7 @@ public:
|
||||
/**
|
||||
* \brief The error callback.
|
||||
*
|
||||
* Whenever an error occurs comitting an offset, this callback will be executed using
|
||||
* Whenever an error occurs committing an offset, this callback will be executed using
|
||||
* the generated error. While the function returns true, then this is offset will be
|
||||
* committed again until it either succeeds or the function returns false.
|
||||
*/
|
||||
@@ -97,8 +97,7 @@ public:
|
||||
* \param callback The callback to be set
|
||||
*/
|
||||
void set_error_callback(ErrorCallback callback);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* \brief Commits the given message synchronously
|
||||
*
|
||||
@@ -118,6 +117,13 @@ public:
|
||||
* \param topic_partitions The topic/partition list to be committed
|
||||
*/
|
||||
void commit(const TopicPartitionList& topic_partitions);
|
||||
|
||||
/**
|
||||
* \brief Get the internal Consumer object
|
||||
*
|
||||
* \return A reference to the Consumer
|
||||
*/
|
||||
Consumer& get_consumer();
|
||||
private:
|
||||
// Return true to abort and false to continue committing
|
||||
template <typename T>
|
||||
|
||||
Reference in New Issue
Block a user