withCompensation

fun <M : Message<out M, *>> M.withCompensation(target: CompensationTarget): M

Marks this message for compensation with the specified target.

Return

This message with compensation headers set

Parameters

target

The compensation target to associate with this message


Adds compensation information to this header.

Return

A new header with compensation information

Parameters

target

The compensation target containing the function to compensate