#1703 & #1693 - moving daemonicity to one place, and in doing so creating a thread factory in ActorSystem

This commit is contained in:
Viktor Klang 2012-01-20 12:30:19 +01:00
parent 03bc15feb1
commit 8dfe619140
14 changed files with 57 additions and 48 deletions

View file

@ -45,7 +45,7 @@ class SquarerImpl(val name: String) extends Squarer {
//#typed-actor-impl-methods
}
//#typed-actor-impl
import java.lang.Integer.{ parseInt println } //Mr funny man avoids printing to stdout AND keeping docs alright
//#typed-actor-supercharge
trait Foo {
def doFoo(times: Int): Unit = println("doFoo(" + times + ")")

View file

@ -22,8 +22,6 @@ object DispatcherDocSpec {
my-dispatcher {
# Dispatcher is the name of the event-based dispatcher
type = Dispatcher
# Toggles whether the threads created by this dispatcher should be daemons or not
daemonic = off
# minimum number of threads to cap factor-based core number to
core-pool-size-min = 2
# No of core threads ... ceil(available processors * factor)