Merge pull request #668 from akka/wip-1588-cluster-death-watch-patriknw

Death watch hooked up with cluster failure detector, see #1588
This commit is contained in:
Patrik Nordwall 2012-09-11 06:13:44 -07:00
commit 911ef6b97e
9 changed files with 286 additions and 29 deletions

View file

@ -287,3 +287,26 @@ stashed messages are put into the dead letters when the actor stops, make sure y
super.postStop if you override it.
Forward of Terminated message
=============================
Forward of ``Terminated`` message is no longer supported. Instead, if you forward
``Terminated`` you should send the information in you own message.
v2.0::
context.watch(subject)
def receive = {
case t @ Terminated => someone forward t
}
v2.1::
case class MyTerminated(subject: ActorRef)
context.watch(subject)
def receive = {
case Terminated(s) => someone forward MyTerminated(s)
}