-
- All Implemented Interfaces:
public interface AggregateRootRepresents an aggregate root.
-
-
Method Summary
Modifier and Type Method Description abstract StringgetUniqueId()Represents the unique id of the aggregate root. abstract intgetVersion()Represents the current version of the aggregate root. abstract List<DomainEventMessage<out Object>>getChanges()Get all the changes of the aggregate root. abstract voidacceptChanges()Accept changes of the aggregate root. abstract voidreplayEvents(List<DomainEventStream> eventStreams)Replay the given event streams. -
-
Method Detail
-
getUniqueId
abstract String getUniqueId()
Represents the unique id of the aggregate root.
-
getVersion
abstract int getVersion()
Represents the current version of the aggregate root.
-
getChanges
abstract List<DomainEventMessage<out Object>> getChanges()
Get all the changes of the aggregate root.
-
acceptChanges
abstract void acceptChanges()
Accept changes of the aggregate root.
-
replayEvents
abstract void replayEvents(List<DomainEventStream> eventStreams)
Replay the given event streams.
-
-
-
-