Remove default time unit in config. All durations explicit. See #1363
* Also changed in dispatcher to use explicit Duration instead of Int/Long
This commit is contained in:
parent
1543594c78
commit
e5f8a41cb8
29 changed files with 166 additions and 154 deletions
|
|
@ -11,6 +11,7 @@ import akka.actor.{ ActorCell, ActorKilledException }
|
|||
import akka.actor.ActorSystem
|
||||
import akka.event.EventStream
|
||||
import akka.actor.Scheduler
|
||||
import akka.util.Duration
|
||||
|
||||
/**
|
||||
* Default settings are:
|
||||
|
|
@ -67,10 +68,10 @@ class Dispatcher(
|
|||
_prerequisites: DispatcherPrerequisites,
|
||||
val name: String,
|
||||
val throughput: Int,
|
||||
val throughputDeadlineTime: Int,
|
||||
val throughputDeadlineTime: Duration,
|
||||
val mailboxType: MailboxType,
|
||||
executorServiceFactoryProvider: ExecutorServiceFactoryProvider,
|
||||
val timeoutMs: Long)
|
||||
val shutdownTimeout: Duration)
|
||||
extends MessageDispatcher(_prerequisites) {
|
||||
|
||||
protected[akka] val executorServiceFactory = executorServiceFactoryProvider.createExecutorServiceFactory(name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue