DefaultHeader
Default implementation of the Header interface.
This class provides a mutable header implementation that can be made read-only. It delegates map operations to an internal mutable map while enforcing read-only constraints.
Author
ahoo wang
Properties
Gets the compensation ID from the header, if present.
Checks if this header contains compensation information.
Whether this header is read-only (volatile for thread safety)
Retrieves the operator from the command header, throwing an exception if not present.
Functions
Extracts a simple waiting chain from the message header. Attempts to extract both simple chain and tail configurations.
Extracts the wait chain type from the message header.
Extracts a waiting chain tail from the message header.
Checks if the header has the local-first flag set.
Checks if this header's compensation information matches the given function.
Adds the wait chain type to the message header.
Adds compensation information to this header.
Adds the local-first flag to the header.
Creates a new header with the specified operator added.
Makes this header read-only and returns it.
Adds a trace ID to the header.