Update to a working version of Scalariform

This commit is contained in:
Björn Antonsson 2016-06-02 14:06:57 +02:00
parent cae070bd93
commit c66ce62d63
616 changed files with 5966 additions and 5436 deletions

View file

@ -124,7 +124,8 @@ class CustomRouterDocSpec extends AkkaSpec(CustomRouterDocSpec.config) with Impl
val paths = for (n <- 1 to 10) yield ("/user/s" + n)
val redundancy1: ActorRef =
system.actorOf(RedundancyGroup(paths, nbrCopies = 3).props(),
system.actorOf(
RedundancyGroup(paths, nbrCopies = 3).props(),
name = "redundancy1")
redundancy1 ! "important"
//#usage-1
@ -132,7 +133,8 @@ class CustomRouterDocSpec extends AkkaSpec(CustomRouterDocSpec.config) with Impl
for (_ <- 1 to 3) expectMsg("important")
//#usage-2
val redundancy2: ActorRef = system.actorOf(FromConfig.props(),
val redundancy2: ActorRef = system.actorOf(
FromConfig.props(),
name = "redundancy2")
redundancy2 ! "very important"
//#usage-2

View file

@ -415,7 +415,8 @@ router-dispatcher {}
//#scatter-gather-group-2
val router20: ActorRef =
context.actorOf(ScatterGatherFirstCompletedGroup(paths,
context.actorOf(ScatterGatherFirstCompletedGroup(
paths,
within = 10.seconds).props(), "router20")
//#scatter-gather-group-2
@ -437,7 +438,8 @@ router-dispatcher {}
//#tail-chopping-group-2
val router24: ActorRef =
context.actorOf(TailChoppingGroup(paths,
context.actorOf(TailChoppingGroup(
paths,
within = 10.seconds, interval = 20.millis).props(), "router24")
//#tail-chopping-group-2
@ -448,7 +450,8 @@ router-dispatcher {}
//#consistent-hashing-pool-2
val router26: ActorRef =
context.actorOf(ConsistentHashingPool(5).props(Props[Worker]),
context.actorOf(
ConsistentHashingPool(5).props(Props[Worker]),
"router26")
//#consistent-hashing-pool-2
@ -470,7 +473,8 @@ router-dispatcher {}
//#resize-pool-2
val resizer = DefaultResizer(lowerBound = 2, upperBound = 15)
val router30: ActorRef =
context.actorOf(RoundRobinPool(5, Some(resizer)).props(Props[Worker]),
context.actorOf(
RoundRobinPool(5, Some(resizer)).props(Props[Worker]),
"router30")
//#resize-pool-2