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:
Alex Damian
2018-06-04 14:48:20 -04:00
committed by Matias Fontanini
parent 9714bec5bf
commit 5cad740aea
4 changed files with 19 additions and 10 deletions

View File

@@ -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>