Class EventSourcedEntity<Command,​Event,​State>

  • public abstract class EventSourcedEntity<Command,​Event,​State>
    extends EventSourcedBehavior<Command,​Event,​State>
    Any Behavior can be used as a sharded entity actor, but the combination of sharding and persistent actors is very common and therefore this PersistentEntity class is provided as convenience.

    It is a EventSourcedBehavior and is implemented in the same way. It selects the persistenceId automatically from the EntityTypeKey and entityId constructor parameters by using EntityTypeKey.persistenceIdFrom.