|
typedef std::map< std::string, std::string > | StringMap |
|
◆ build()
Message pulsar::MessageBuilder::build |
( |
| ) |
|
Finalize the immutable message
◆ create()
create a empty message, with no properties or data
◆ disableReplication()
MessageBuilder& pulsar::MessageBuilder::disableReplication |
( |
bool |
flag | ) |
|
Do not replicate this message
- Parameters
-
flag | if true, disable replication, otherwise use default replication |
◆ setAllocatedContent()
MessageBuilder& pulsar::MessageBuilder::setAllocatedContent |
( |
void * |
data, |
|
|
size_t |
size |
|
) |
| |
Set content of the message to a buffer already allocated by the caller. No copies of this buffer will be made. The caller is responsible to ensure the memory buffer is valid until the message has been persisted (or an error is returned).
◆ setContent()
MessageBuilder& pulsar::MessageBuilder::setContent |
( |
const void * |
data, |
|
|
size_t |
size |
|
) |
| |
Set content of the message. The message contents will be managed by the system.
◆ setProperties()
MessageBuilder& pulsar::MessageBuilder::setProperties |
( |
const StringMap & |
properties | ) |
|
Add all the properties in the provided map
◆ setProperty()
MessageBuilder& pulsar::MessageBuilder::setProperty |
( |
const std::string & |
name, |
|
|
const std::string & |
value |
|
) |
| |
Sets a new property on a message.
- Parameters
-
name | the name of the property |
value | the associated value |
◆ setReplicationClusters()
MessageBuilder& pulsar::MessageBuilder::setReplicationClusters |
( |
const std::vector< std::string > & |
clusters | ) |
|
override namespace replication clusters. note that it is the caller's responsibility to provide valid cluster names, and that all clusters have been previously configured as destinations.
given an empty list, the message will replicate per the namespace configuration.
- Parameters
-
clusters | where to send this message. |
The documentation for this class was generated from the following file: