mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-11-21 20:24:49 +00:00
Add TopicPartition::set_offset
This commit is contained in:
@@ -73,6 +73,10 @@ int64_t TopicPartition::get_offset() const {
|
||||
return offset_;
|
||||
}
|
||||
|
||||
void TopicPartition::set_offset(int64_t offset) {
|
||||
offset_ = offset;
|
||||
}
|
||||
|
||||
ostream& operator<<(ostream& output, const TopicPartition& rhs) {
|
||||
return output << rhs.get_topic() << "[" << rhs.get_partition() << "]";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user