Merge pull request #1579 from akka/wip-3464-doc-router-props-patriknw

DOC: Props.empty.withRouter, see #3464
This commit is contained in:
Roland Kuhn 2013-07-04 05:00:53 -07:00
commit 8426712f81
5 changed files with 13 additions and 7 deletions

View file

@ -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().withRouter(
val router2 = system.actorOf(Props.empty.withRouter(
RoundRobinRouter(routees = routees)))
//#programmaticRoutingRoutees
1 to 6 foreach { i router2 ! Message1(i) }