org.qi4j.library.eventsourcing.domain.replay
Interface DomainEventPlayer
- All Known Subinterfaces:
- DomainEventPlayerService
- All Known Implementing Classes:
- DomainEventPlayerService.Mixin
public interface DomainEventPlayer
Service that can replay transactions and individual domain events.
playTransaction
void playTransaction(UnitOfWorkDomainEventsValue unitOfWorkDomainValue)
throws EventReplayException
- Throws:
EventReplayException
playEvent
void playEvent(DomainEventValue domainEventValue,
Object object)
throws EventReplayException
- Invoke a domain event on a particular object. The object could
be the original object, but could also be a service that wants
to be invoked to handle the event.
- Parameters:
domainEventValue
- object
-
- Throws:
EventReplayException