State stored locking aggregate is using/delegating a
decider of type
E> to handle commands and produce new state.
In order to handle the command, aggregate needs to fetch the current state via
StateLockingRepository.fetchState function first, and then delegate the command to the
decider which can produce new state as a result.
New state is then stored via
Иван Дугалић / Ivan Dugalic /
Commands of type
C that this aggregate can handle
Aggregate state of type
Events of type
E that this aggregate can publish
The Version of the stored State
Fetch state and version
Command of type
the pair of current State/[S] and current Version/[V]
You can update/save the item/state, but only if the
version number in the storage has not changed.
State of type
The current version of the state
newly saved State of type [S, V]
Generated using TypeDoc