CompensationMatcher

Utility object for handling compensation matching and header manipulation.

Provides functions to mark messages for compensation and check if messages match specific compensation targets.

Properties

Link copied to clipboard

Gets the compensation ID from the header, if present.

Link copied to clipboard

Checks if this header contains compensation information.

Functions

Link copied to clipboard

Checks if this header's compensation information matches the given function.

fun Message<*, *>.match(function: FunctionInfo): Boolean

Checks if this message matches the given function for compensation purposes.

Link copied to clipboard
fun <M : Message<out M, *>> M.withCompensation(target: CompensationTarget): M

Marks this message for compensation with the specified target.

Adds compensation information to this header.