org.qi4j.library.eventsourcing.domain.api
Interface UnitOfWorkDomainEventsValue
- All Superinterfaces:
- Composite, Value, ValueComposite
public interface UnitOfWorkDomainEventsValue
- extends ValueComposite
List of events for a single UnitOfWork. Events must always be consumed
in UoW units, in order to ensure that the result is consistent
with what happened in that UoW.
Context that is common to all events in the UoW is stored here rather than
in the individual event.
version
Property<String> version()
usecase
Property<String> usecase()
timestamp
Property<Long> timestamp()
user
@Optional
Property<String> user()
events
@UseDefaults
Property<List<DomainEventValue>> events()