20 #include "hazelcast/client/serialization/serialization.h"
22 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
24 #pragma warning(disable : 4251)
35 message(
const std::string& topic_name,
38 boost::optional<member>&&
member)
41 std::chrono::system_clock::from_time_t(
42 std::chrono::duration_cast<std::chrono::seconds>(
43 std::chrono::milliseconds(publish_time))
50 std::chrono::system_clock::time_point publish_time,
51 boost::optional<member>&&
member)
52 : message_object_(msg)
53 , publish_time_(publish_time)
54 , publishing_member_(
member)
55 , name_(std::move(topic_name))
58 const typed_data& get_message_object()
const {
return message_object_; }
60 std::chrono::system_clock::time_point get_publish_time()
const
65 const member* get_publishing_member()
const
67 return publishing_member_.get_ptr();
70 const std::string& get_source()
const {
return name_; }
72 const std::string& get_name()
const {
return name_; }
76 std::chrono::system_clock::time_point publish_time_;
77 boost::optional<member> publishing_member_;
84 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
typed_data class is a wrapper class for the serialized binary data.