Package akka.actor
Class Terminated
- java.lang.Object
-
- akka.actor.Terminated
-
- All Implemented Interfaces:
AutoReceivedMessage,DeadLetterSuppression,NoSerializationVerificationNeeded,PossiblyHarmful,java.io.Serializable,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 ActorRefactor()booleanaddressTerminated()static Terminatedapply(ActorRef actor, boolean existenceConfirmed, boolean addressTerminated)booleancanEqual(java.lang.Object x$1)Terminatedcopy(ActorRef actor, boolean existenceConfirmed, boolean addressTerminated)ActorRefcopy$default$1()booleanequals(java.lang.Object x$1)booleanexistenceConfirmed()ActorRefgetActor()booleangetAddressTerminated()booleangetExistenceConfirmed()inthashCode()intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()java.lang.StringtoString()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:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
-