Akka :: 调度程序 [%name%] 未配置,使用默认调度程序。

24

我创建了以下的application.conf文件:

akka {

    actor {

        prio-dispatcher {
            type = "Dispatcher"
            mailbox-type = "my.package.PrioritizedMailbox"
        }

    }

}

使用dump命令进行配置转储时

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

我在这里缺少什么?

更新这里找到了解决方法,必须使用名称“akka.actor.prio-dispatcher”。


请在您的问题中添加一个答案并自行接受它。 - Tomasz Nurkiewicz
1个回答

29

2
太棒了!这个还没有在文档中解释清楚,我已经苦恼了一段时间了。 - Mortimer

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接