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

栏目: Scala · 发布时间: 7年前

内容简介:代码日志版权声明:翻译自:http://stackoverflow.com/questions/12204418/akka-dispatcher-name-not-configured-using-default-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”

上面的配置指定邮箱的名称是akka.actor.prio-dispatcher

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

代码日志版权声明:

翻译自:http://stackoverflow.com/questions/12204418/akka-dispatcher-name-not-configured-using-default-dispatcher


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

进化

进化

北大首届互联网CIO-CTO班全体同学 著 / 人民邮电出版社 / 2014-10 / 39

精彩视频:http://v.youku.com/v_show/id_XNzkyNzAyNDA0.html 京东购买链接:http://item.jd.com/11549275.html 互动出版网购买链接:http://product.china-pub.com/4352423 互联网是一个年轻的行业,同时也是一个推陈出新、不断进化的行业。 本书是北京大学首届互联网CIO-......一起来看看 《进化》 这本书的介绍吧!

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具