Package org.apache.pekko.actor
Class Terminated
java.lang.Object
org.apache.pekko.actor.Terminated
- All Implemented Interfaces:
Serializable,AutoReceivedMessage,DeadLetterSuppression,NoSerializationVerificationNeeded,PossiblyHarmful,scala.Equals,scala.Product
public final class Terminated
extends Object
implements AutoReceivedMessage, PossiblyHarmful, DeadLetterSuppression, NoSerializationVerificationNeeded, scala.Product, Serializable
When Death Watch is used, the watcher will receive a Terminated(watched)
message when watched is terminated.
Terminated message can't be forwarded to another actor, since that actor
might not be watching the subject. Instead, if you need to forward Terminated
to another actor you should send the information in your own message.
param: actor the watched actor that terminated param: existenceConfirmed is false when the Terminated message was not sent directly from the watched actor, but derived from another source, such as when watching a non-local ActorRef, which might not have been resolved param: addressTerminated the Terminated message was derived from that the remote node hosting the watched actor was detected as unreachable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionactor()booleanstatic TerminatedbooleanbooleanbooleangetActor()booleanbooleaninthashCode()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>toString()static scala.Option<ActorRef>unapply(Terminated x$0) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Method Details
-
apply
public static Terminated apply(ActorRef actor, boolean existenceConfirmed, boolean addressTerminated) -
unapply
-
actor
-
existenceConfirmed
public boolean existenceConfirmed() -
addressTerminated
public boolean addressTerminated() -
copy
-
copy$default$1
-
getActor
-
getAddressTerminated
public boolean getAddressTerminated() -
getExistenceConfirmed
public boolean getExistenceConfirmed() -
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-