未配置Akka ::调度程序[%name%],使用default-dispatcher [英] Akka :: dispatcher [%name%] not configured, using default-dispatcher

查看:276
本文介绍了未配置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

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

这篇关于未配置Akka ::调度程序[%name%],使用default-dispatcher的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆