Removing 'name' from dispatchers, just use id, much better

This commit is contained in:
Viktor Klang 2012-01-19 19:08:51 +01:00
parent 2e40cdcf0e
commit d888ca5bff
8 changed files with 4 additions and 26 deletions

View file

@ -24,7 +24,6 @@ import java.util.concurrent._
*/
class Dispatcher(
_prerequisites: DispatcherPrerequisites,
val name: String,
val id: String,
val throughput: Int,
val throughputDeadlineTime: Duration,
@ -33,7 +32,7 @@ class Dispatcher(
val shutdownTimeout: Duration)
extends MessageDispatcher(_prerequisites) {
protected[akka] val executorServiceFactory = executorServiceFactoryProvider.createExecutorServiceFactory(name)
protected[akka] val executorServiceFactory = executorServiceFactoryProvider.createExecutorServiceFactory(id)
protected[akka] val executorService = new AtomicReference[ExecutorService](new ExecutorServiceDelegate {
lazy val executor = executorServiceFactory.createExecutorService
})
@ -94,7 +93,7 @@ class Dispatcher(
} else false
}
override val toString = getClass.getSimpleName + "[" + name + "]"
override val toString = getClass.getSimpleName + "[" + id + "]"
}
object PriorityGenerator {