配置 – 未配置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


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

查看所有标签

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

Web软件用户界面设计指南

Web软件用户界面设计指南

林锐、唐勇、石志强 / 电子工业出版社 / 2005-5-1 / 20.00元

Web软件用户界面设计指南,ISBN:9787121010163,作者:林锐等编著一起来看看 《Web软件用户界面设计指南》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具