Hi Max,

> 3 apr 2015 kl. 13:25 skrev Maxymilian Śmiech 
> <[email protected]>:
> 
> Hi,
> 
> I want to use ClusterSingletonManager, but it is not possible to set 
> supervision strategy for its child (like with Router). What should I do?
> copy ClusterSingletonManager implementation and add parameter
> override ClusterSingletonManager (factory methods from companion object will 
> be unusable)
> I know it is possible to hack this with dummy Router (or my dummy 
> intermediate actor) but that will complicate actor paths.
> 

Adding another supervisor actor that creates the "real" singleton instance is 
what I would recommend. If paths are of importance that parent actor could 
forward all messages to its child.

> My use case: detect ActorInitializationException (because of errors when 
> parsing Config options) and shutdown application. I want to be reliably 
> notified when my singleton actor stops (any errors).

Sounds like you should use watch for this. No need for supervision.

/Patrik

> 
> Is it possible to reliably detect that situation without injecting 
> Supervision strategy into ClusterSingletonManager?
> 
> thanks!
> Max
> -- 
> >>>>>>>>>> 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 http://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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to