The Aggregate type.
The Aggregate type. This is the only (abstract) type member to be defined.
All other type members are aliases defined by type projection of inner types from Aggregate type itself.
Alias for Aggregate's ProtocolCommand
Alias for Aggregate's ProtocolCommand
Alias for Aggregate's ProtocolEvent
Alias for Aggregate's ProtocolEvent
Alias for an immutable Seq of Aggregate's ProtocolEvent
Alias for an immutable Seq of Aggregate's ProtocolEvent
Alias for Aggregate#Id
Alias for Aggregate#Id
Alias for Aggregate#Protocol
Alias for Aggregate#Protocol
Partial function to transform incoming messages to (Id, Command) tuple
Partial function to transform incoming messages to (Id, Command) tuple
Generates a unique Aggregate Id
Generates a unique Aggregate Id
a unique Aggregate Id
Receives Command and returns (Id, Command) tuple, where Id is generated by generatedId() methods
Receives Command and returns (Id, Command) tuple, where Id is generated by generatedId() methods
Strategy to use whenever id generation is managed by application itself.
When using this strategy, Aggregates are expected to be initialized with only a Command. No Ids are expected to be passed along with Creational Command.
Implementors are required to implement
generateId
method that should return a unique Id each time.the AggregateType