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
public class Terminated extends java.lang.Object implements Signal
Lifecycle signal that is fired when an Actor that was watched has terminated. Watching is performed by invoking thepekko.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
ActorReffor the terminated actor
-
-
Constructor Summary
Constructors Constructor Description Terminated(ActorRef<scala.runtime.Nothing$> ref)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Terminatedapply(ActorRef<scala.runtime.Nothing$> ref)booleanequals(java.lang.Object obj)ActorRef<java.lang.Void>getRef()Java API: The actor that was watched and got terminatedinthashCode()ActorRef<scala.runtime.Nothing$>ref()java.lang.StringtoString()static scala.Option<ActorRef<scala.runtime.Nothing$>>unapply(Terminated t)
-
-
-
Constructor Detail
-
Terminated
public Terminated(ActorRef<scala.runtime.Nothing$> ref)
-
-
Method Detail
-
apply
public static Terminated apply(ActorRef<scala.runtime.Nothing$> ref)
-
unapply
public static scala.Option<ActorRef<scala.runtime.Nothing$>> unapply(Terminated t)
-
ref
public ActorRef<scala.runtime.Nothing$> ref()
-
getRef
public ActorRef<java.lang.Void> getRef()
Java API: The actor that was watched and got terminated
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-