Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/src/main/paradox/actors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions docs/src/main/paradox/typed/style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down