End*_*rga 38
你在找
getContext().parent()
Run Code Online (Sandbox Code Playgroud)
它为您提供了父级的ActorRef,因此您可以这样做
getContext().parent().tell(...)
Run Code Online (Sandbox Code Playgroud)
Sim*_*mon 15
使用Akka 2.4,您必须context.parent在actor内部进行其父actor actor引用.之后,您可以像以前一样发送消息(context.parent ! "hello").