improve documentation of explicitly given routees

This commit is contained in:
Roland 2012-05-22 13:07:05 +02:00
parent 916c2d4d11
commit 9ac11a6432
5 changed files with 16 additions and 6 deletions

View file

@ -55,7 +55,7 @@ public class RouterViaProgramExample {
ActorRef actor2 = system.actorOf(new Props(ExampleActor.class));
ActorRef actor3 = system.actorOf(new Props(ExampleActor.class));
Iterable<ActorRef> routees = Arrays.asList(new ActorRef[] { actor1, actor2, actor3 });
ActorRef router2 = system.actorOf(new Props(ExampleActor.class).withRouter(RoundRobinRouter.create(routees)));
ActorRef router2 = system.actorOf(new Props().withRouter(RoundRobinRouter.create(routees)));
//#programmaticRoutingRoutees
for (int i = 1; i <= 6; i++) {
router2.tell(new ExampleActor.Message(i));