Removing 'name' from dispatchers, just use id, much better
This commit is contained in:
parent
2e40cdcf0e
commit
d888ca5bff
8 changed files with 4 additions and 26 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue