The supervisor is always the actor's parent. I'm not aware of a direct way 
to get the ActorRef for the parent from outside the actor, but you could 
get its path using 
actorRef.path.parent

Tal


On Thursday, March 3, 2016 at 3:07:31 AM UTC+2, Remko de Jong wrote:
>
> Just playing around a bit and was wondering what the replacement was (if 
> there is any) of the following method on ActorRef in version 1.x
>
> defsupervisor : Option[ActorRef 
> <http://doc.akka.io/api/akka/1.3/akka/actor/ActorRef.html>]
>
> Returns the supervisor, if there is one.
>
>
>
>
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to