improve documentation of explicitly given routees
This commit is contained in:
parent
916c2d4d11
commit
9ac11a6432
5 changed files with 16 additions and 6 deletions
|
|
@ -29,7 +29,7 @@ object RoutingProgrammaticallyExample extends App {
|
|||
val actor2 = system.actorOf(Props[ExampleActor1])
|
||||
val actor3 = system.actorOf(Props[ExampleActor1])
|
||||
val routees = Vector[ActorRef](actor1, actor2, actor3)
|
||||
val router2 = system.actorOf(Props[ExampleActor1].withRouter(
|
||||
val router2 = system.actorOf(Props().withRouter(
|
||||
RoundRobinRouter(routees = routees)))
|
||||
//#programmaticRoutingRoutees
|
||||
1 to 6 foreach { i ⇒ router2 ! Message1(i) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue