AggregateIdempotency
data class AggregateIdempotency<STATE : AggregateState, EVENT>(val tracker: (STATE) -> CommandIdempotencyTracker, val event: (CommandIdempotency) -> EVENT)(source)
Explicit command-idempotency opt-in for an aggregate definition.
tracker exposes committed idempotency state. event creates the aggregate's concrete IdempotencyEvent, which must belong to its event hierarchy; the aggregate evolver is responsible for applying that event to the tracker.