Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/three.js/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 路由器及;路由器';s调度员_Java_Akka - Fatal编程技术网

Java 路由器及;路由器';s调度员

Java 路由器及;路由器';s调度员,java,akka,Java,Akka,我对路由器和路由器的调度程序设置感到困惑。在创建路由器时,如果我使用 ActorRef router1 =_system.actorOf(FromConfig.getInstance().props(Props.create(MyActor.class).withDispatcher("my-dispatcher")),"MyRouter"); 所以这个调度器被所有的路由器使用。路由器正在使用的调度程序呢。在我的application.conf中 akka.actor.deployment {

我对路由器和路由器的调度程序设置感到困惑。在创建路由器时,如果我使用

ActorRef router1 =_system.actorOf(FromConfig.getInstance().props(Props.create(MyActor.class).withDispatcher("my-dispatcher")),"MyRouter");
所以这个调度器被所有的路由器使用。路由器正在使用的调度程序呢。在我的application.conf中

akka.actor.deployment {
    /MyRouter{
        router = round-robin-pool
        nr-of-instances = 5
        dispatcher = my-dispatcher
    }
如何检查路由器是否正在使用此调度器(如果这是正确的方法)。 另外,我如何设置routees在配置中使用akka.actor.depolyment时应该使用哪种调度器