Akka :: dispatcher [%name%] not configured, using default-dispatcher

半城伤御伤魂 提交于 2019-12-09 07:46:18

问题


I created the followind application.conf:

akka {

    actor {

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

    }

}

when dumping configuration with

actorSystem = ActorSystem.create()
println(actorSystem.settings)

I'm getting the output:

        # application.conf: 5
        "prio-dispatcher" : {
            # application.conf: 7
            "mailbox-type" : "my.package.PrioritizedMailbox",
            # application.conf: 6
            "type" : "Dispatcher"
        },

and later on

[WARN] [08/30/2012 22:44:54.362] [default-akka.actor.default-dispatcher-3] [Dispatchers] Dispatcher [prio-dispatcher] not configured, using default-dispatcher

What am I missing here?

UPD Found the solution here, had to use the name "akka.actor.prio-dispatcher"


回答1:


The configuration above dictates that name of mailbox is akka.actor.prio-dispatcher

Description of the problem: http://groups.google.com/group/akka-user/browse_thread/thread/678f2ae1c068e0fa



来源:https://stackoverflow.com/questions/12204418/akka-dispatcher-name-not-configured-using-default-dispatcher

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!