oschulz
unread,Dec 12, 2010, 9:40:14 AM12/12/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Akka User List
From what I've seen, when an actor is restarted, a new instance of the
actors
class is created, using the same constructor arguments used to create
the original
actor object. This means, of course, that the complete state of the
actor is lost
on restart.
Since restart means that there was a problem with the actor, I guess
that is mostly
a good thing - since the actor's state may have been responsible for
it's crash in
the first place, it should be deleted to make sure the actor won't
crash again right
away.
However, what if i need to preserve at least part of that state - in
particular,
necessary references to other actors (possibly not linked to this
one)? Is
that possible somehow?
Cheers,
Oliver