Scala API: the ActorRef
for the terminated actor
Scala API: If the watched actor is a direct child, and was stopped because it failed, this will contain the
Exception it failed with, for all other cases it will be None
.
Java API: If the watched actor is a direct child, and was stopped because it failed, this will contain the
Exception it failed with, for all other cases it will be an empty Optional
.
Java API: The actor that was watched and got terminated
Scala API: the ActorRef
for the terminated actor
Lifecycle signal that is fired when an Actor that was watched has terminated. Watching is performed by invoking the akka.actor.typed.scaladsl.ActorContext.watch. The DeathWatch service is idempotent, meaning that registering twice has the same effect as registering once. Registration does not need to happen before the Actor terminates, a notification is guaranteed to arrive after both registration and termination have occurred. This message is also sent when the watched actor is on a node that has been removed from the cluster when using akka-cluster or has been marked unreachable when using akka-remote directly.
Scala API: the
ActorRef
for the terminated actor