Hazelcast C++ Client
Hazelcast C++ Client Library
Loading...
Searching...
No Matches
hazelcast::client::topic::message Class Reference

Public Member Functions

 message (const std::string &topic_name, typed_data &&msg, int64_t publish_time, boost::optional< member > &&member)
 message (std::string topic_name, typed_data &&msg, std::chrono::system_clock::time_point publish_time, boost::optional< member > &&member)
const typed_dataget_message_object () const
std::chrono::system_clock::time_point get_publish_time () const
const memberget_publishing_member () const
const std::string & get_source () const
const std::string & get_name () const

Detailed Description

Definition at line 32 of file message.h.

Constructor & Destructor Documentation

◆ message() [1/2]

hazelcast::client::topic::message::message ( const std::string & topic_name,
typed_data && msg,
int64_t publish_time,
boost::optional< member > && member )
inline

Definition at line 35 of file message.h.

39 : message(topic_name,
40 std::move(msg),
41 std::chrono::system_clock::from_time_t(
42 std::chrono::duration_cast<std::chrono::seconds>(
43 std::chrono::milliseconds(publish_time))
44 .count()),
45 std::move(member))
46 {}

◆ message() [2/2]

hazelcast::client::topic::message::message ( std::string topic_name,
typed_data && msg,
std::chrono::system_clock::time_point publish_time,
boost::optional< member > && member )
inline

Definition at line 48 of file message.h.

52 : message_object_(msg)
53 , publish_time_(publish_time)
54 , publishing_member_(member)
55 , name_(std::move(topic_name))
56 {}

Member Function Documentation

◆ get_message_object()

const typed_data & hazelcast::client::topic::message::get_message_object ( ) const
inline

Definition at line 58 of file message.h.

58{ return message_object_; }

◆ get_name()

const std::string & hazelcast::client::topic::message::get_name ( ) const
inline

Definition at line 72 of file message.h.

72{ return name_; }

◆ get_publish_time()

std::chrono::system_clock::time_point hazelcast::client::topic::message::get_publish_time ( ) const
inline

Definition at line 60 of file message.h.

61 {
62 return publish_time_;
63 }

◆ get_publishing_member()

const member * hazelcast::client::topic::message::get_publishing_member ( ) const
inline

Definition at line 65 of file message.h.

66 {
67 return publishing_member_.get_ptr();
68 }

◆ get_source()

const std::string & hazelcast::client::topic::message::get_source ( ) const
inline

Definition at line 70 of file message.h.

70{ return name_; }

The documentation for this class was generated from the following file:
  • hazelcast/include/hazelcast/client/topic/message.h