I was wondering if anyone has thought of making the BackoffSupervisor extendable so the consumer can change the behavior of the child life-cycle? I had a case where I wanted to control which Props was used to create the child-actor in a Shard based on the first message. The application this was specific to a Persistent actor that I want to change Recovery behavior when restoring the actor after passivation if I determined I wanted to reset the Actor's state.
My final solution was to pull the BackoffSupervisor class out of the Akka distribution and make a new MyBackoffSupervisor class with the 'final' removed so I could override preStart() and then add in a new initialization message handler to control the initial creation of the Actor before changing over to the normal message handler. -Richard -- >>>>>>>>>> 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.
