CommandIdempotencyTracker
data class CommandIdempotencyTracker(val groups: Map<CommandIdempotencyGroup, List<CommandIdempotencyTracker.GenerationKeys>> = emptyMap())(source)
Idempotency identities retained in aggregate state, with up to DEFAULT_MAX_GENERATIONS active generations per group. Applying an identity accumulates same-generation keys or appends a new generation, evicting the oldest generation when exceeding the limit. Keys are checked across all retained generations for a group. Evolvers update this value from committed IdempotencyEvents.
Constructors
Link copied to clipboard
constructor(groups: Map<CommandIdempotencyGroup, List<CommandIdempotencyTracker.GenerationKeys>> = emptyMap())
Types
Link copied to clipboard
data class GenerationKeys(val generation: CommandIdempotencyGeneration, val keys: Set<CommandIdempotencyKey>)
Functions
Link copied to clipboard
fun apply(idempotency: CommandIdempotency, maxGenerations: Int = DEFAULT_MAX_GENERATIONS): CommandIdempotencyTracker
Link copied to clipboard