有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!


共 (1) 个答案

  1. # 1 楼答案

    在Akka文档中可以很容易地找到答案:

    An actor system is typically started by creating actors beneath the guardian actor using the ActorSystem.actorOf method and then using ActorContext.actorOf from within the created actors to spawn the actor tree.

    • System.actorOf产生的演员将是守护者演员的孩子
    • context.actorOf生成的参与者将是上下文本身的子对象,即调用该方法的参与者

    作为一个更一般的建议,当你在寻找类似的答案时,一定要彻底浏览Akka文档