NamedMessage
A message that has both a name and is associated with a bounded context.
This interface combines the capabilities of NamedBoundedContextMessage and Named, providing messages with identity within a specific bounded context. The name typically represents the message type or command/event name, while the bounded context provides the domain scope.
Parameters
The self-referential type for fluent method chaining
The type of the message body payload
See also
for naming capabilities
for bounded context association
Inheritors
Properties
Functions
Checks if this entity belongs to the same bounded context as another entity.
Adds all key-value pairs from the provided map to the message header and returns the message for method chaining.
Adds a key-value pair to the message header and returns the message for method chaining.
Marks this message as read-only and returns it for method chaining.