public interface EventStore
streams
.Modifier and Type | Method and Description |
---|---|
void |
appendEvents(String type,
DomainEventStream events)
Append the events in the given
stream to the event store. |
DomainEventStream |
readEvents(String type,
Object identifier)
Read the events of the aggregate identified by the given type and identifier that allow the current aggregate
state to be rebuilt.
|
void appendEvents(String type, DomainEventStream events)
stream
to the event store.type
- The type descriptor of the object to storeevents
- The event stream containing the events to storeEventStoreException
- if an error occurs while storing the events in the event streamDomainEventStream readEvents(String type, Object identifier)
type
- The type descriptor of the object to retrieveidentifier
- The unique aggregate identifier of the events to loadEventStoreException
- if an error occurs while reading the events in the event streamCopyright © 2010-2014. All Rights Reserved.