Package org.apache.pekko.actor
Class Terminated
- java.lang.Object
-
- org.apache.pekko.actor.Terminated
-
- All Implemented Interfaces:
java.io.Serializable
,AutoReceivedMessage
,DeadLetterSuppression
,NoSerializationVerificationNeeded
,PossiblyHarmful
,scala.Equals
,scala.Product
public final class Terminated extends java.lang.Object implements AutoReceivedMessage, PossiblyHarmful, DeadLetterSuppression, NoSerializationVerificationNeeded, scala.Product, java.io.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:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ActorRef
actor()
boolean
addressTerminated()
static Terminated
apply(ActorRef actor, boolean existenceConfirmed, boolean addressTerminated)
boolean
canEqual(java.lang.Object x$1)
Terminated
copy(ActorRef actor, boolean existenceConfirmed, boolean addressTerminated)
ActorRef
copy$default$1()
boolean
equals(java.lang.Object x$1)
boolean
existenceConfirmed()
ActorRef
getActor()
boolean
getAddressTerminated()
boolean
getExistenceConfirmed()
int
hashCode()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
java.lang.String
toString()
static scala.Option<ActorRef>
unapply(Terminated x$0)
-
-
-
Method Detail
-
apply
public static Terminated apply(ActorRef actor, boolean existenceConfirmed, boolean addressTerminated)
-
unapply
public static scala.Option<ActorRef> unapply(Terminated x$0)
-
actor
public ActorRef actor()
-
existenceConfirmed
public boolean existenceConfirmed()
-
addressTerminated
public boolean addressTerminated()
-
copy
public Terminated copy(ActorRef actor, boolean existenceConfirmed, boolean addressTerminated)
-
copy$default$1
public ActorRef copy$default$1()
-
getActor
public ActorRef getActor()
-
getAddressTerminated
public boolean getAddressTerminated()
-
getExistenceConfirmed
public boolean getExistenceConfirmed()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-