Header
Represents the header of a message, containing metadata key-value pairs.
This interface extends MutableMap
Headers are typically used to store metadata such as correlation IDs, timestamps, routing information, and other contextual data that accompanies the message body. Once a header is marked as read-only, any attempt to modify it will result in an UnsupportedOperationException being thrown.
Author
ahoo wang
See also
DefaultHeader
for the default implementation
for usage in message contexts