Adding daemonicity to the dispatcher configurator

This commit is contained in:
Viktor Klang 2011-12-13 20:23:26 +01:00
parent 7b7402c723
commit 89e29b07e1
3 changed files with 3 additions and 1 deletions

View file

@ -287,7 +287,7 @@ abstract class MessageDispatcherConfigurator() {
//Apply the following options to the config if they are present in the config
ThreadPoolConfigDispatcherBuilder(createDispatcher, ThreadPoolConfig())
ThreadPoolConfigDispatcherBuilder(createDispatcher, ThreadPoolConfig(daemonic = config getBoolean "daemonic"))
.setKeepAliveTime(Duration(config getMilliseconds "keep-alive-time", TimeUnit.MILLISECONDS))
.setAllowCoreThreadTimeout(config getBoolean "allow-core-timeout")
.setCorePoolSizeFromFactor(config getInt "core-pool-size-min", config getDouble "core-pool-size-factor", config getInt "core-pool-size-max")