If it were me, I'd instead make this explicit part of the protocol - i.e. 
introduce this Actor via a message to the worker.

If you just rely on "parent of my parent" then you lock yourself into this 
structure and make it harder to refactor if you change
your mind about the hierarchy you need.

Hierarchy should be mostly used for supervision and creating "islands" that 
fail together etc. (read up on supervision hierarchies).

Hope this helps.

-- 
Cheers,
Konrad 'ktoso’ Malawski
Akka @ Lightbend

On 27 March 2016 at 13:27:04, Sergey Sopin ([email protected]) wrote:

Hi,

Is it possible to get parent of router from routee? If I would use 
context().parent() it will return router itself, but I need to find parent of 
parent in this case.
Thanks.

Best regards,
Sergey Sopin
--
>>>>>>>>>> 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.

-- 
>>>>>>>>>>      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