MessageExchange
interface MessageExchange<SOURCE : MessageExchange<SOURCE, M>, out M : Message<*, *>> : ErrorAccessor, CommandResultAccessor
Inheritors
Functions
Link copied to clipboard
Link copied to clipboard
Who withheld the acknowledgement of this exchange (withholdAcknowledgement), or null.
Link copied to clipboard
Clears the current error object.
Link copied to clipboard
Confirms that this receiver synchronously admitted the local exchange.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Whether withholdAcknowledgement was called on this exchange.
Link copied to clipboard
Rejects local-only suppression when this exchange is filtered or cannot be admitted. The distributed copy then remains eligible for processing.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun MessageExchange<*, *>.withholdAcknowledgement(withheldBy: String = getFunction()?.let { "${it.processorName}.${it.name}" } ?: "unknown")
Leaves this exchange unacknowledged when its processing ends, so a bus that redelivers unacknowledged messages delivers it again. For a processing failure that was neither handled nor durably recorded, for example when recording an event-processing failure for compensation fails.