Message
The Message interface represents a message with a source and a body of generic types. It extends Identifier and CreateTimeCapable interfaces, indicating that each message has a unique identifier and creation time. The interface provides methods to manipulate message headers and to mark messages as read-only.
Parameters
SOURCE
The type of the message source, self-referential to allow for fluent API design.
T
The type of the message body.
Inheritors
Properties
Functions
Link copied to clipboard
Adds all entries from the provided map to the message header and returns the message itself for method chaining.
Adds a key-value pair to the message header and returns the message itself for method chaining.
Link copied to clipboard
Marks the message as read-only and returns the message itself for method chaining.