AggregateEvolver

Deterministically folds committed events into aggregate state.

Type Parameters

STATE

The type of the aggregate's state.

EVENT

The base type of events it applies.

Functions

Link copied to clipboard
open fun evolve(currentState: STATE?, events: List<CommittedEvent<EVENT>>): STATE
Link copied to clipboard
abstract fun evolveStep(currentState: STATE?, committedEvent: CommittedEvent<EVENT>): STATE