resend

open override fun resend(aggregateId: AggregateId, headVersion: Int, tailVersion: Int, target: CompensationTarget): Mono<Long>

Resends a range of state events by reconstructing state from event sourcing.

This method loads events from the event store, reconstructs the aggregate state through event sourcing, converts events to state events, and resends them within the specified version range.

Return

A Mono containing the count of state events that were resent

Parameters

aggregateId

The aggregate ID to resend state events for

headVersion

The starting version (inclusive) of events to resend

tailVersion

The ending version (inclusive) of events to resend

target

The compensation target for the resend operation

See also