From aa0d4f4cfb567ac0c2012e68a6ce385b02145909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Antonsson?= Date: Tue, 2 Oct 2012 11:09:38 +0200 Subject: [PATCH] Three more tweaks. #2413 --- akka-actor/src/main/resources/reference.conf | 4 +-- akka-docs/rst/scala/actors.rst | 2 +- .../docs/dispatcher/DispatcherDocSpec.scala | 25 ++++++++++--------- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/akka-actor/src/main/resources/reference.conf b/akka-actor/src/main/resources/reference.conf index 41e1abb16a..839a9b614d 100644 --- a/akka-actor/src/main/resources/reference.conf +++ b/akka-actor/src/main/resources/reference.conf @@ -239,8 +239,8 @@ akka { # calculating: ceil(available processors * factor) max-pool-size-factor = 3.0 - # Max number of threads to cap factor-based max number to (if using a - # bounded task queue) + # Max number of threads to cap factor-based max number to + # (if using a bounded task queue) max-pool-size-max = 64 # Specifies the bounded capacity of the task queue (< 1 == unbounded) diff --git a/akka-docs/rst/scala/actors.rst b/akka-docs/rst/scala/actors.rst index c2a0c429f0..fea94dec0d 100644 --- a/akka-docs/rst/scala/actors.rst +++ b/akka-docs/rst/scala/actors.rst @@ -353,7 +353,7 @@ paths—logical or physical—and receive back an :class:`ActorRef` with the result:: context.actorFor("/user/serviceA/aggregator") // will look up this absolute path - context.actorFor("../joe") // will look up sibling beneath same supervisor + context.actorFor("../joe") // will look up sibling beneath same supervisor The supplied path is parsed as a :class:`java.net.URI`, which basically means that it is split on ``/`` into path elements. If the path starts with ``/``, it diff --git a/akka-docs/rst/scala/code/docs/dispatcher/DispatcherDocSpec.scala b/akka-docs/rst/scala/code/docs/dispatcher/DispatcherDocSpec.scala index 510582adb3..7d06bb43da 100644 --- a/akka-docs/rst/scala/code/docs/dispatcher/DispatcherDocSpec.scala +++ b/akka-docs/rst/scala/code/docs/dispatcher/DispatcherDocSpec.scala @@ -112,21 +112,22 @@ object DispatcherDocSpec { // We inherit, in this case, from UnboundedPriorityMailbox // and seed it with the priority generator - class MyPrioMailbox(settings: ActorSystem.Settings, config: Config) extends UnboundedPriorityMailbox( - // Create a new PriorityGenerator, lower prio means more important - PriorityGenerator { - // 'highpriority messages should be treated first if possible - case 'highpriority ⇒ 0 + class MyPrioMailbox(settings: ActorSystem.Settings, config: Config) + extends UnboundedPriorityMailbox( + // Create a new PriorityGenerator, lower prio means more important + PriorityGenerator { + // 'highpriority messages should be treated first if possible + case 'highpriority ⇒ 0 - // 'lowpriority messages should be treated last if possible - case 'lowpriority ⇒ 2 + // 'lowpriority messages should be treated last if possible + case 'lowpriority ⇒ 2 - // PoisonPill when no other left - case PoisonPill ⇒ 3 + // PoisonPill when no other left + case PoisonPill ⇒ 3 - // We default to 1, which is in between high and low - case otherwise ⇒ 1 - }) + // We default to 1, which is in between high and low + case otherwise ⇒ 1 + }) //#prio-mailbox class MyActor extends Actor {