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.


Method Summary
 Property<List<DomainEventValue>> events()
           
 Property<Long> timestamp()
           
 Property<String> usecase()
           
 Property<String> user()
           
 Property<String> version()
           
 
Methods inherited from interface org.qi4j.api.value.Value
buildWith, state, toJSON
 
Methods inherited from interface org.qi4j.api.composite.Composite
metaInfo, type
 

Method Detail

version

Property<String> version()

usecase

Property<String> usecase()

timestamp

Property<Long> timestamp()

user

@Optional
Property<String> user()

events

@UseDefaults
Property<List<DomainEventValue>> events()