20 #include "hazelcast/client/serialization/serialization.h"
22 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
24 #pragma warning(disable: 4251)
35 boost::optional<member> &&
member) :
message(topic_name, std::move(msg),
36 std::chrono::system_clock::from_time_t(std::chrono::duration_cast<std::chrono::seconds>(std::chrono::milliseconds(publish_time)).count()),
39 message(std::string topic_name,
typed_data &&msg, std::chrono::system_clock::time_point publish_time,
40 boost::optional<member> &&
member)
41 : message_object_(msg), publish_time_(publish_time), publishing_member_(
member), name_(std::move(topic_name)) {}
44 return message_object_;
47 std::chrono::system_clock::time_point get_publish_time()
const {
51 const member *get_publishing_member()
const {
52 return publishing_member_.get_ptr();
55 const std::string &get_source()
const {
59 const std::string &get_name()
const {
65 std::chrono::system_clock::time_point publish_time_;
66 boost::optional<member> publishing_member_;
73 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
typed_data class is a wrapper class for the serialized binary data.