org.qi4j.library.eventsourcing.application.replay
Interface ApplicationEventPlayer
- All Known Subinterfaces:
- ApplicationEventPlayerService
- All Known Implementing Classes:
- ApplicationEventPlayerService.Mixin
public interface ApplicationEventPlayer
Service that can replay ApplicationEvents.
playEvent
void playEvent(ApplicationEvent applicationEvent,
Object object)
throws ApplicationEventReplayException
- 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:
applicationEvent
- object
-
- Throws:
ApplicationEventReplayException