Package 

Interface AggregateRoot

  • All Implemented Interfaces:

    
    public interface AggregateRoot
    
                        

    Represents an aggregate root.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String getUniqueId() Represents the unique id of the aggregate root.
      abstract int getVersion() Represents the current version of the aggregate root.
      abstract List<DomainEventMessage<out Object>> getChanges() Get all the changes of the aggregate root.
      abstract void acceptChanges() Accept changes of the aggregate root.
      abstract void replayEvents(List<DomainEventStream> eventStreams) Replay the given event streams.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait