Added method to set the partition

This commit is contained in:
Alexander Damian
2019-07-26 10:35:20 -04:00
parent a357529cc0
commit a85a87bb9b
2 changed files with 9 additions and 0 deletions

View File

@@ -107,6 +107,11 @@ public:
*/
int64_t get_offset() const;
/**
* @brief Sets the partition
*/
void set_partition(int partition);
/**
* Sets the offset
*/

View File

@@ -76,6 +76,10 @@ int64_t TopicPartition::get_offset() const {
return offset_;
}
void TopicPartition::set_partition(int partition) {
partition_ = partition;
}
void TopicPartition::set_offset(int64_t offset) {
offset_ = offset;
}