rename Props.withRouting to .withRouter
This commit is contained in:
parent
4b2b41e725
commit
4bd9f6ae1a
11 changed files with 28 additions and 28 deletions
|
|
@ -105,7 +105,7 @@ public class Pi {
|
|||
this.nrOfElements = nrOfElements;
|
||||
this.latch = latch;
|
||||
|
||||
router = this.getContext().actorOf(new Props().withCreator(Worker.class).withRouting(new RoundRobinRouter(5)), "pi");
|
||||
router = this.getContext().actorOf(new Props().withCreator(Worker.class).withRouter(new RoundRobinRouter(5)), "pi");
|
||||
}
|
||||
|
||||
// message handler
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ object Pi extends App {
|
|||
var start: Long = _
|
||||
|
||||
// create a round robin router for the workers
|
||||
val router = context.actorOf(Props(new Worker).withRouting(RoundRobinRouter(nrOfInstances = 5)), "pi")
|
||||
val router = context.actorOf(Props(new Worker).withRouter(RoundRobinRouter(nrOfInstances = 5)), "pi")
|
||||
|
||||
// message handler
|
||||
def receive = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue