Package co.paralleluniverse.actors
Class ExitMessage
- java.lang.Object
-
- co.paralleluniverse.actors.ExitMessage
-
- All Implemented Interfaces:
LifecycleMessage
,java.io.Serializable
public class ExitMessage extends java.lang.Object implements LifecycleMessage
ALifecycleMessage
signifying an actor's death. This message is automatically sent by a dying actor to itswatchers
orlinked actors
.- See Also:
- Serialized Form
-
-
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, ornull
if the actor terminated normally.java.lang.Object
getWatch()
int
hashCode()
java.lang.String
toString()
-
-
-
Field Detail
-
actor
public final ActorRef actor
-
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 actorcause
- the exception that caused the actor's death, ornull
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, ornull
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 thewatch
method, ornull
if the message is sent as a result of alink
.- Returns:
- the watch object that is the reason for this message being sent or
null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-