Package org.apache.pekko.actor.typed
Class Terminated
java.lang.Object
org.apache.pekko.actor.typed.Terminated
- All Implemented Interfaces:
Signal
- Direct Known Subclasses:
ChildFailed
Lifecycle signal that is fired when an Actor that was watched has terminated.
Watching is performed by invoking the
pekko.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 Pekko Cluster.
param: ref Scala API: the ActorRef for the terminated actor