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()
boolean
static Terminated
boolean
boolean
boolean
getActor()
boolean
boolean
int
hashCode()
int
productElement
(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, wait
Methods 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:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArity
in interfacescala.Product
-
productElement
- Specified by:
productElement
in interfacescala.Product
-
productIterator
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-