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 Details

    • 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 String productPrefix()
      Specified by:
      productPrefix in interface scala.Product
    • productArity

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

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

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

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

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

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

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

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