|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventStore
Abstraction of the event storage mechanism. Domain Events are stored and read as streams
.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 store
EventStoreException
- 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 load
EventStoreException
- if an error occurs while reading the events in the event stream
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |