akka.actor
Class Terminated
java.lang.Object
akka.actor.Terminated
- All Implemented Interfaces:
- AutoReceivedMessage, DeadLetterSuppression, PossiblyHarmful, java.io.Serializable, scala.Equals, scala.Product
public class Terminated
- extends java.lang.Object
- implements AutoReceivedMessage, PossiblyHarmful, DeadLetterSuppression, scala.Product, scala.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
Constructor Summary |
Terminated(ActorRef actor,
boolean existenceConfirmed,
boolean addressTerminated)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface scala.Product |
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
canEqual, equals |
Terminated
public Terminated(ActorRef actor,
boolean existenceConfirmed,
boolean addressTerminated)
actor
public ActorRef actor()
existenceConfirmed
public boolean existenceConfirmed()
addressTerminated
public boolean addressTerminated()
getActor
public ActorRef getActor()
getExistenceConfirmed
public boolean getExistenceConfirmed()
getAddressTerminated
public boolean getAddressTerminated()