Use function instead of scala partial function for java api #26970 (#26972)

* Use function instead of scala partial function for java api #26970

* Remove deprecated function #26970
This commit is contained in:
Nicolas Vollmar 2019-05-24 08:13:22 +02:00 committed by Patrik Nordwall
parent 814cfa286c
commit dd6924465b
4 changed files with 43 additions and 40 deletions

View file

@ -246,3 +246,7 @@ Akka Typed APIs are still marked as [may change](../common/may-change.md) and th
* 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.
* `Routers.pool` now take a factory function rather than a `Behavior` to protect against accidentally sharing same behavior instance and state across routees.
### Akka Typed Stream API changes
* `ActorSoruce.actorRef` relying on `PartialFunction` has been replaced in the Java API with a variant more suitable to be called by Java.