提交 fa3cc70f 编写于 作者: J jai1 提交者: GitHub

C++ Client - moving all MessageData related code to MessageImpl (#391)

上级 ce553b71
......@@ -71,4 +71,8 @@ namespace pulsar {
keyValue->set_value(value);
metadata.mutable_properties()->AddAllocated(keyValue);
}
void MessageImpl::setPartitionKey(const std::string& partitionKey) {
metadata.set_partition_key(partitionKey);
}
}
......@@ -54,6 +54,7 @@ private:
void setReplicationClusters(const std::vector<std::string>& clusters);
void setProperty(const std::string& name, const std::string& value);
void disableReplication(bool flag);
void setPartitionKey(const std::string& partitionKey);
Message::StringMap properties_;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册