JavaAkka参与者工具包上下文。ActorofVS系统。阿克特罗夫 3 月,2 周 Questions & Answers 2186 你能给我解释一下两者的区别吗 context.actorOf 及 system.actorOf ?
# 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文档
# 1 楼答案
在Akka文档中可以很容易地找到答案:
System.actorOf
产生的演员将是守护者演员的孩子李>context.actorOf
生成的参与者将是上下文本身的子对象,即调用该方法的参与者李>作为一个更一般的建议,当你在寻找类似的答案时,一定要彻底浏览Akka文档