diff --git a/docs/src/main/paradox/actors.md b/docs/src/main/paradox/actors.md index 1f3ae5d347..fff471c1ac 100644 --- a/docs/src/main/paradox/actors.md +++ b/docs/src/main/paradox/actors.md @@ -827,8 +827,7 @@ That has benefits such as: The @javadoc[Receive](pekko.actor.AbstractActor.Receive) can be implemented in other ways than using the `ReceiveBuilder` since in the end, it is just a wrapper around a Scala `PartialFunction`. In Java, you can implement `PartialFunction` by -extending `AbstractPartialFunction`. For example, one could implement an adapter -to Vavr Pattern Matching DSL. See the [Akka Vavr sample project](https://github.com/akka/akka-samples/tree/2.5/akka-sample-vavr) for more details. +extending `AbstractPartialFunction`. If the validation of the `ReceiveBuilder` match logic turns out to be a bottleneck for some of your actors you can consider implementing it at a lower level by extending @javadoc[UntypedAbstractActor](pekko.actor.UntypedAbstractActor) instead diff --git a/docs/src/main/paradox/typed/style-guide.md b/docs/src/main/paradox/typed/style-guide.md index 7cd49367b1..0b90acf6c9 100644 --- a/docs/src/main/paradox/typed/style-guide.md +++ b/docs/src/main/paradox/typed/style-guide.md @@ -467,8 +467,7 @@ be good to know that it's optional in case you would prefer a different approach * direct processing because there is only one message type * if or switch statements * annotation processor -* Vavr Pattern Matching DSL -* pattern matching since JDK 14 ([JEP 305](https://openjdk.java.net/jeps/305)) +* pattern matching since JDK 21 ([JEP 441](https://openjdk.org/jeps/441)) In `Behaviors` there are `receive`, `receiveMessage` and `receiveSignal` factory methods that takes functions instead of using the `ReceiveBuilder`, which is the `receive` with the class parameter.