On Thu, May 7, 2015 at 9:26 PM, Moiz Raja <[email protected]> wrote:
> This is a top level one - but it is not the only top level actor in the > actor system. > > The only safe way to reuse a name is to watch the actor from the *parent* actor, and once received a Terminated message, create an actor with the same name. Note, that you cannot do this with top level actors, since their parent is unaccessible for users. This is simple to solve though, you just need to introduce a new top level actor, and put your other actors under that one. This is also a good practice, in general you should not have more than a couple of top level actors, supervising the other actors in your system. -Endre > On Thursday, 7 May 2015 12:21:51 UTC-7, Konrad Malawski wrote: >> >> Is this a child actor we’re talking about or a top level one? >> >> -- >> Cheers, >> Konrad 'ktoso’ Malawski >> Akka <http://akka.io> @ Typesafe <http://typesafe.com> >> >> On 7 May 2015 at 21:18:27, Moiz Raja ([email protected]) wrote: >> >> I have a need to wait for an actor to be terminated because I need to >> recreate a new actor with the same name on the same actor system. >> >> What would be the right way to wait for the old actor to be terminated? >> Note that I am sending a PoisonPill to the Actor as on now to terminate it. >> >> Thanks, >> -Moiz >> -- >> >>>>>>>>>> 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. > -- Akka Team Typesafe - Reactive apps on the JVM Blog: letitcrash.com Twitter: @akkateam -- >>>>>>>>>> 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.
