Package io.simplesource.api
-
Interface Summary Interface Description Aggregator<E,A> An Aggregator is a function that builds up an aggregate from a stream of events (effectively a fold function).CommandAPI<K,C> The public API for submitting commands against a given aggregate and querying where they have been successfully applied.CommandHandler<K,C,E,A> A command handler is responsible for accepting or rejecting commands and turning accepted commands into a list of events by applying the appropriate business logic and validations based on the current state.InitialValue<K,A> Provides the initial value of an aggregate.InvalidSequenceHandler<K,C,A> This functional for accepting or rejecting commands executed against an out of date view. -
Class Summary Class Description CommandAPI.Request<K,C> CommandError A CommandError explains failures.CommandId -
Enum Summary Enum Description CommandError.Reason