Class ExitMessage

    • Field Summary

      Fields 
      Modifier and Type Field Description
      ActorRef actor  
      java.lang.Throwable cause  
      java.lang.Object watch  
    • Constructor Summary

      Constructors 
      Constructor Description
      ExitMessage​(ActorRef actor, java.lang.Throwable cause)  
      ExitMessage​(ActorRef actor, java.lang.Throwable cause, java.lang.Object watch)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      ActorRef getActor()
      Returns the actor that originated this message (the dying actor).
      java.lang.Throwable getCause()
      Returns the actor's cause of death exception, or null if the actor terminated normally.
      java.lang.Object getWatch()
      Returns the watch object that is the reason for this message being sent to the receiving actor, returned by the watch method, or null if the message is sent as a result of a link.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • cause

        public final java.lang.Throwable cause
      • watch

        public final java.lang.Object watch
    • Constructor Detail

      • ExitMessage

        public ExitMessage​(ActorRef actor,
                           java.lang.Throwable cause)
        Parameters:
        actor - the dying actor
        cause - the exception that caused the actor's death, or null if the actor terminated normally.
      • ExitMessage

        public ExitMessage​(ActorRef actor,
                           java.lang.Throwable cause,
                           java.lang.Object watch)
    • Method Detail

      • getActor

        public ActorRef getActor()
        Returns the actor that originated this message (the dying actor).
        Returns:
        the actor that originated this message (the dying actor).
      • getCause

        public java.lang.Throwable getCause()
        Returns the actor's cause of death exception, or null if the actor terminated normally.
        Returns:
        the actor's cause of death exception, or null if the actor terminated normally.
      • getWatch

        public java.lang.Object getWatch()
        Returns the watch object that is the reason for this message being sent to the receiving actor, returned by the watch method, or null if the message is sent as a result of a link.
        Returns:
        the watch object that is the reason for this message being sent or null
      • toString

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

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object