Package akka.javasdk.eventsourcedentity
package akka.javasdk.eventsourcedentity
Event Sourced Entity components for building stateful services that persist changes as events in
a journal.
Event Sourced Entities store a sequence of events rather than the current state directly. The current state is derived by replaying all events from the journal. This approach provides a complete audit trail, enables reliable state replication, and allows for sophisticated event-driven architectures.
The main classes in this package are:
EventSourcedEntity
- The base class for implementing Event Sourced EntitiesCommandContext
- Context available during command processingEventContext
- Context available during event processingEventSourcedEntityContext
- Context available during entity construction
- See Also:
-
ClassDescriptionContext information available to Event Sourced Entity command handlers during command processing.Context information available when processing events in the
EventSourcedEntity.applyEvent(E)
method.EventSourcedEntity<S,E> Event Sourced Entities are stateful components that persist changes as events in a journal rather than storing the current state directly.An Effect describes the actions that the Akka runtime should perform after a command handler completes.Construct the effect that is returned by the command handler.An effect that is known to be read only and does not update the state of the entity.Context information available during Event Sourced Entity construction and initialization.