我创建了以下应用程序.conf:
akka {
actor {
prio-dispatcher {
type = "Dispatcher"
mailbox-type = "my.package.PrioritizedMailbox"
}
}
}
转储配置时
actorSystem = ActorSystem.create()
println(actorSystem.settings)
我得到输出:
# application.conf: 5
"prio-dispatcher" : {
# application.conf: 7
"mailbox-type" : "my.package.PrioritizedMailbox",
# application.conf: 6
"type" : "Dispatcher"
},
后来
[WARN] [08/30/2012 22:44:54.362] [default-akka.actor.default-dispatcher-3] [Dispatchers] Dispatcher [prio-dispatcher] not configured, using default-dispatcher
我在这里缺少什么?
UPD 找到解决方案 here ,必须使用名称“akka.actor.prio-dispatcher”
最佳答案
上面的配置规定邮箱的名称是 akka.actor.prio-调度员
问题描述:http://groups.google.com/group/akka-user/browse_thread/thread/678f2ae1c068e0fa
关于configuration - Akka::dispatcher [%name%] 未配置,使用默认调度程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12204418/