Akka29924 router pool bcast (#29927)
This commit is contained in:
parent
2dedb715a1
commit
b8c79f8695
10 changed files with 123 additions and 8 deletions
|
|
@ -62,6 +62,17 @@ Scala
|
|||
Java
|
||||
: @@snip [RouterTest.java](/akka-actor-typed-tests/src/test/java/jdocs/akka/typed/RouterTest.java) { #pool-dispatcher }
|
||||
|
||||
### Broadcasting a message to all routees
|
||||
|
||||
Pool routers can be configured to identify messages intended to be broad-casted to all routees.
|
||||
Therefore, the `PoolRouter` has a property to configure its `broadcastPredicate`:
|
||||
|
||||
Scala
|
||||
: @@snip [RouterSpec.scala](/akka-actor-typed-tests/src/test/scala/docs/akka/typed/RouterSpec.scala) { #broadcast }
|
||||
|
||||
Java
|
||||
: @@snip [RouterTest.java](/akka-actor-typed-tests/src/test/java/jdocs/akka/typed/RouterTest.java) { #broadcast }
|
||||
|
||||
## Group Router
|
||||
|
||||
The group router is created with a `ServiceKey` and uses the receptionist (see @ref:[Receptionist](actor-discovery.md#receptionist)) to discover
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue