Package akka.actor

Class 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 Detail

      • apply

        public static Terminated apply​(ActorRef actor,
                                       boolean existenceConfirmed,
                                       boolean addressTerminated)
      • 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()
      • getAddressTerminated

        public boolean getAddressTerminated()
      • getExistenceConfirmed

        public boolean getExistenceConfirmed()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • productElementName

        public java.lang.String productElementName​(int x$1)
        Specified by:
        productElementName in interface scala.Product
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        Overrides:
        equals in class java.lang.Object