mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-22 04:34:49 +00:00
Add initial producer code
This commit is contained in:
20
src/partition.cpp
Normal file
20
src/partition.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "partition.h"
|
||||
#include <librdkafka/rdkafka.h>
|
||||
|
||||
namespace cppkafka {
|
||||
|
||||
Partition::Partition()
|
||||
: partition_(RD_KAFKA_PARTITION_UA) {
|
||||
|
||||
}
|
||||
|
||||
Partition::Partition(int partition)
|
||||
: partition_(partition) {
|
||||
|
||||
}
|
||||
|
||||
int Partition::get_partition() const {
|
||||
return partition_;
|
||||
}
|
||||
|
||||
} // cppkafka
|
||||
Reference in New Issue
Block a user