Adjustments based on review. See #1805

This commit is contained in:
Patrik Nordwall 2012-02-08 14:03:31 +01:00
parent 1f988889c2
commit df1606a8ee
4 changed files with 12 additions and 8 deletions

View file

@ -422,8 +422,10 @@ class ThreadPoolExecutorConfigurator(config: Config, prerequisites: DispatcherPr
def createExecutorServiceFactory(id: String, threadFactory: ThreadFactory): ExecutorServiceFactory = {
val tf = threadFactory match {
case m: MonitorableThreadFactory m.copy(m.name + "-" + id)
case other other
case m: MonitorableThreadFactory
// add the dispatcher id to the thread names
m.copy(m.name + "-" + id)
case other other
}
threadPoolConfig.createExecutorServiceFactory(id, tf)
}
@ -476,8 +478,10 @@ class ForkJoinExecutorConfigurator(config: Config, prerequisites: DispatcherPrer
}
final def createExecutorServiceFactory(id: String, threadFactory: ThreadFactory): ExecutorServiceFactory = {
val tf = threadFactory match {
case m: MonitorableThreadFactory m.copy(m.name + "-" + id)
case other other
case m: MonitorableThreadFactory
// add the dispatcher id to the thread names
m.copy(m.name + "-" + id)
case other other
}
new ForkJoinExecutorServiceFactory(
validate(tf),