本文介绍了未配置Akka ::调度程序[%name%],使用default-dispatcher的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了followind application.conf:
I created the followind application.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 在找到了解决方案,必须使用名称 akka.actor.prio-dispatcher
UPD Found the solution here, had to use the name "akka.actor.prio-dispatcher"
推荐答案
上面的配置要求邮箱名称为 akka.actor.prio-dispatcher
The configuration above dictates that name of mailbox is akka.actor.prio-dispatcher
问题描述:
这篇关于未配置Akka ::调度程序[%name%],使用default-dispatcher的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!