Restart an actor killed by PosionKill

35 views
Skip to first unread message

Jiansen

unread,
Mar 11, 2013, 1:40:59 AM3/11/13
to akka...@googlegroups.com
Hi all,

Just want to confirm if we can restart an actor that is killed by the PosionKill message.


Many Thanks

Yours, Jiansen

Rich Dougherty

unread,
Mar 11, 2013, 5:09:09 AM3/11/13
to akka...@googlegroups.com
Hi Jiansen

Internally PoisonPill causes the actor to throw an exception. Whether the actor is then stopped or restarted depends on how its supervisor is configured, but restarting is definitely possible.

Cheers
Rich


--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> 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 akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Roland Kuhn

unread,
Mar 11, 2013, 5:12:36 AM3/11/13
to akka...@googlegroups.com
Hi Rich,

you are mistaking PoisonPill for Kill here: in the case of PoisonPill there is nothing which can be done, since that makes the actor commit suicide (`context stop self`).

Regards,

Roland


Dr. Roland Kuhn
Akka Tech Lead
Typesafe – Empowering professional developers to build amazing apps.
twitter: @rolandkuhn

Rich Dougherty

unread,
Mar 11, 2013, 5:13:31 AM3/11/13
to akka...@googlegroups.com
Oops thanks!

Jiansen

unread,
Mar 11, 2013, 6:33:41 PM3/11/13
to akka...@googlegroups.com
Thanks for Roland's confirm.  -- Jiansen
Reply all
Reply to author
Forward
0 new messages