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

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

内容简介:代码日志版权声明:翻译自: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


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

查看所有标签

猜你喜欢:

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

About Face 2.0

About Face 2.0

Alan Cooper、Robert M. Reimann / Wiley / March 17, 2003 / USD 35.00

First published seven years ago-just before the World Wide Web exploded into dominance in the software world-About Face rapidly became a bestseller. While the ideas and principles in the original book......一起来看看 《About Face 2.0》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具