Update the typed cluster sharding documentation to use new terminology #26120
EventSourcedEntity instead of PersistentEntity
This commit is contained in:
parent
762c9cb019
commit
4055a42899
1 changed files with 2 additions and 2 deletions
|
|
@ -77,8 +77,8 @@ Scala
|
|||
Java
|
||||
: @@snip [HelloWorldPersistentEntityExample.java](/akka-cluster-sharding-typed/src/test/java/jdocs/akka/cluster/sharding/typed/HelloWorldPersistentEntityExample.java) { #persistent-entity-import #persistent-entity }
|
||||
|
||||
Note that `PersistentEntity` is used in this example. Any `Behavior` can be used as a sharded entity actor,
|
||||
but the combination of sharding and persistent actors is very common and therefore the `PersistentEntity`
|
||||
Note that `EventSourcedEntity` is used in this example. Any `Behavior` can be used as a sharded entity actor,
|
||||
but the combination of sharding and persistent actors is very common and therefore the `EventSourcedEntity`
|
||||
@scala[factory]@java[class] is provided as convenience. It selects the `persistenceId` automatically from
|
||||
the `EntityTypeKey` and `entityId` @java[constructor] parameters by using `EntityTypeKey.persistenceIdFrom`.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue