StateAggregate

State Aggregate .

Holds aggregate state and applies domain events to evolve it. State implementations require a no-argument constructor for serialization.

Author

ahoo wang

Inheritors

Functions

Link copied to clipboard
abstract fun onSourcing(eventStream: DomainEventStream): StateAggregate<S>

Ignores an event when no matching onSourcing function exists, while still advancing the aggregate version to the event version.