org.qi4j.library.eventsourcing.domain.api

## Interface UnitOfWorkDomainEventsValue

- All Superinterfaces:
    Composite, 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

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Property<List<DomainEventValue>>` | `events()`
    `Property<Long>` | `timestamp()`
    `Property<String>` | `usecase()`
    `Property<String>` | `user()`
    `Property<String>` | `version()`

- - ### 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()