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 the command wait endpoint from the message header.
Extracts the command wait ID from the message header.
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 wait function information from the message header.
Extracts a waiting chain tail from the message header.
Extracts the waiting stage from the message header.
Extracts a complete wait strategy from the message header. Attempts to extract both simple waiting chain and waiting for stage strategies.
Checks if the header has the local-first flag set.
Checks if this header's compensation information matches the given function.
Adds the command wait endpoint to the message header for propagation.
Adds the wait chain type to the message header.
Adds the wait command ID to the message header for propagation.
Adds wait function information to the message header for propagation.
Adds the waiting stage to the message header for propagation.
Extracts the command wait endpoint from the message header, throwing an exception if not present.
Extracts the command wait ID from the message header, throwing an exception if not present.
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.