Merge pull request #896 from akka/wip-2740-resizer-doc-patriknw

Correction of router with resizer doc sample, see #2740
This commit is contained in:
Patrik Nordwall 2012-11-26 05:25:52 -08:00
commit a4c6252eee
2 changed files with 2 additions and 2 deletions

View file

@ -70,7 +70,7 @@ public class RouterViaProgramExample {
int upperBound = 15;
DefaultResizer resizer = new DefaultResizer(lowerBound, upperBound);
ActorRef router3 = system.actorOf(
new Props(ExampleActor.class).withRouter(new RoundRobinRouter(nrOfInstances)));
new Props(ExampleActor.class).withRouter(new RoundRobinRouter(resizer)));
//#programmaticRoutingWithResizer
for (int i = 1; i <= 6; i++) {
router3.tell(new ExampleActor.Message(i), null);