Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了这个演员:
ActorRef eventActor = system.actorOf(Props.create(EventActor.class,1),name);
现在,我想检索道具 1,但我不能。你能帮助我吗??
从一个actor内部,您可以访问Props用于使用context.props(Scala) 或getContext().props()(Java) 创建它的对象。
Props
context.props
getContext().props()