Add pause/resume partitions wrappers

This commit is contained in:
Matias Fontanini
2016-05-22 09:52:42 -07:00
parent 83c1d304c6
commit 58258750df
4 changed files with 23 additions and 9 deletions

View File

@@ -5,7 +5,6 @@
#include <string>
#include <chrono>
#include "kafka_handle_base.h"
#include "topic_partition_list.h"
#include "message.h"
namespace cppkafka {
@@ -35,14 +34,12 @@ public:
TopicPartitionList get_subscription();
TopicPartitionList get_assignment();
Message poll();
private:
static const std::chrono::milliseconds DEFAULT_TIMEOUT;
void commit(const Message& msg, bool async);
void commit(const TopicPartitionList& topic_partitions, bool async);
void check_error(rd_kafka_resp_err_t error);
std::chrono::milliseconds timeout_ms_;
};