Add a metadata key and value to this message.
Add a metadata key and value to this message.
The key and value to add.
A copy of this message with the key and value added.
Get the metadata for the given metadata key.
Get the metadata for the given metadata key.
The key of the metadata.
The metadata, if found for that key.
The payload of the message.
Return a copy of this message with the given payload.
Return a copy of this message with the given payload.
The payload.
A copy of this message with the given payload.
Get the message key as a String.
Get the message key as a String.
If the key is not a String, it will be converted to a String using toString
.
If the underlying message broker doesn't support keys, the empty string will be returned.
A string representation of the message key.
(message: any2stringadd[Message[Payload]]).+(other)
A message broker message.
This provides access to both the message payload, and the metadata.