Package io.cloudstate.javasupport.eventsourced
Event Sourcing support.
Event sourced entities can be annotated with the @EventSourcedEntity annotation, and
supply command handlers using the @CommandHandler annotation.
In addition, @EventHandler
annotated methods should be defined to handle events, and @Snapshot and @SnapshotHandler annotated methods should
be defined to produce and handle snapshots respectively.
-
Interface Summary Interface Description CommandContext An event sourced command context.EventContext Context for an event.EventSourcedContext Root context for all event sourcing contexts.EventSourcedEntityCreationContext Creation context forEventSourcedEntityannotated entities.EventSourcedEntityFactory Low level interface for handling events and commands on an entity.EventSourcedEntityHandler Low level interface for handling events and commands on an entity.SnapshotContext A snapshot context. -
Annotation Types Summary Annotation Type Description CommandHandler Marks a method as a command handler.EventHandler Marks a method as an event handler.EventSourcedEntity An event sourced entity.Snapshot Marks a method as a snapshot method.SnapshotHandler Marks a method as a snapshot handler.