mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-15 09:24:49 +00:00
26 lines
576 B
C++
26 lines
576 B
C++
#include "zookeeper/zookeeper_subscriber.h"
|
|
#include "zookeeper/zookeeper_pool.h"
|
|
|
|
using std::string;
|
|
|
|
namespace cppkafka {
|
|
|
|
ZookeeperSubscriber::ZookeeperSubscriber(string endpoint, string subscription_id)
|
|
: endpoint_(move(endpoint)), subscription_id_(move(subscription_id)) {
|
|
|
|
}
|
|
|
|
ZookeeperSubscriber::~ZookeeperSubscriber() {
|
|
ZookeeperPool::instance().unsubscribe(*this);
|
|
}
|
|
|
|
const string& ZookeeperSubscriber::get_endpoint() const {
|
|
return endpoint_;
|
|
}
|
|
|
|
const string& ZookeeperSubscriber::get_subscription_id() const {
|
|
return subscription_id_;
|
|
}
|
|
|
|
} // cppkafka
|