Adds EventSourcedEntity with EnforcingReplies (#26692)

This commit is contained in:
Renato Cavalcanti 2019-05-17 09:09:18 +02:00 committed by Johan Andrén
parent 18d970fc8e
commit 8eef461b7b
8 changed files with 204 additions and 9 deletions

View file

@ -188,3 +188,13 @@ instead either run under `/system/localReceptionist` or `/system/clusterReceptio
The path change makes it impossible to do a rolling upgrade from 2.5 to 2.6 if you use Akka Typed and the receptionist
as the old and the new nodes receptionists will not be able to communicate.
### Akka Typed API changes
Akka Typed APIs are still marked as [may change](../common/may-change.md) and therefore its API can still change without deprecation period. The following is a list of API changes since the latest release:
* Factory method `Entity.ofPersistentEntity` is renamed to `Entity.ofEventSourcedEntity` in the Java API for Akka Cluster Sharding Typed.
* New abstract class `EventSourcedEntityWithEnforcedReplies` in Java API for Akka Cluster Sharding Typed and corresponding factory method `Entity.ofEventSourcedEntityWithEnforcedReplies` to ease the creation of `EventSourcedBehavior` with enforced replies.
* New method `EventSourcedEntity.withEnforcedReplies` added to Scala API to ease the creation of `EventSourcedBehavior` with enforced replies.