使用default-dispatcher未配置Akka :: dispatcher [%name%]

时间:2012-08-30 19:52:07

标签: configuration akka dispatcher

我创建了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 找到解决方案here,必须使用名称" akka.actor.prio-dispatcher"

1 个答案:

答案 0 :(得分:28)

上述配置规定邮箱名称为 akka.actor.prio-dispatcher

问题描述:http://groups.google.com/group/akka-user/browse_thread/thread/678f2ae1c068e0fa