EventCompensateSupporter

class EventCompensateSupporter(domainEventCompensator: DomainEventCompensator, stateEventCompensator: StateEventCompensator)

Supporter class that coordinates event compensation operations.

This class acts as a facade for different types of event compensators, routing compensation requests to the appropriate compensator based on the function kind.

Parameters

domainEventCompensator

Handles domain event compensations

stateEventCompensator

Handles state event compensations

Constructors

Link copied to clipboard
constructor(domainEventCompensator: DomainEventCompensator, stateEventCompensator: StateEventCompensator)

Functions

Link copied to clipboard
fun compensate(aggregateId: AggregateId, version: Int, target: CompensationTarget): Mono<Long>

Performs compensation for the specified aggregate and version.