mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-01 11:07:56 +00:00
Added pause/resume for producers (#87)
* Added pause/resume for producers * Moved pause/resume functions to KafkaHandleBase
This commit is contained in:
committed by
Matias Fontanini
parent
069ea3df8e
commit
5c72f3fe28
@@ -76,6 +76,13 @@ public:
|
||||
*/
|
||||
void pause_partitions(const TopicPartitionList& topic_partitions);
|
||||
|
||||
/**
|
||||
* \brief Pauses consumption/production for this topic
|
||||
*
|
||||
* \param topic The topic name
|
||||
*/
|
||||
void pause(const std::string& topic);
|
||||
|
||||
/**
|
||||
* \brief Resumes consumption/production from the given topic/partition list
|
||||
*
|
||||
@@ -84,6 +91,13 @@ public:
|
||||
* \param topic_partitions The topic/partition list to resume consuming/producing from/to
|
||||
*/
|
||||
void resume_partitions(const TopicPartitionList& topic_partitions);
|
||||
|
||||
/**
|
||||
* \brief Resumes consumption/production for this topic
|
||||
*
|
||||
* \param topic The topic name
|
||||
*/
|
||||
void resume(const std::string& topic);
|
||||
|
||||
/**
|
||||
* \brief Sets the timeout for operations that require a timeout
|
||||
|
||||
Reference in New Issue
Block a user