Corrected mixup in migration guide.

This commit is contained in:
Björn Antonsson 2012-10-15 15:13:59 +02:00
parent ec4871e801
commit f488b32b34

View file

@ -203,17 +203,17 @@ v2.0 Scala::
v2.1 Scala:: v2.1 Scala::
val router2 = system.actorOf(Props[ExampleActor1].withRouter( val router2 = system.actorOf(Props.empty.withRouter(
RoundRobinRouter(routees = routees))) RoundRobinRouter(routees = routees)))
v2.0 Java:: v2.0 Java::
ActorRef router2 = system.actorOf(new Props(ExampleActor.class).withRouter( ActorRef router2 = system.actorOf(new Props().withRouter(
RoundRobinRouter.create(routees))); RoundRobinRouter.create(routees)));
v2.1 Java:: v2.1 Java::
ActorRef router2 = system.actorOf(new Props().withRouter( ActorRef router2 = system.actorOf(Props.empty().withRouter(
RoundRobinRouter.create(routees))); RoundRobinRouter.create(routees)));
Props: Function-based creation Props: Function-based creation