Add KafkaHandleBase::add_brokers

This commit is contained in:
Matias Fontanini
2016-06-19 09:21:29 -07:00
parent 68229af8c7
commit 678ac88c9b
3 changed files with 16 additions and 2 deletions

View File

@@ -64,7 +64,7 @@ public:
/**
* \brief Pauses consumption/production from the given topic/partition list
*
* This translates into a call to rd_kafka_pause_partitions
* This translates into a call to rd_kafka_pause_partitions
*
* \param topic_partitions The topic/partition list to pause consuming/producing from/to
*/
@@ -88,6 +88,15 @@ public:
*/
void set_timeout(const std::chrono::milliseconds& timeout);
/**
* \brief Adds one or more brokers to this handle's broker list
*
* This calls rd_kafka_brokers_add using the provided broker list.
*
* \param brokers The broker list endpoint string
*/
void add_brokers(const std::string& brokers);
/**
* \brief Queries the offset for the given topic/partition
*