Class ActorMessage

java.lang.Object
org.semispace.actor.ActorMessage

public class ActorMessage extends Object
  • Constructor Details

    • ActorMessage

      public ActorMessage()
  • Method Details

    • getPayload

      public Object getPayload()
      The payload of this message
    • setPayload

      public void setPayload(Object payload)
    • getAddress

      public Long getAddress()
      The destination actor for the message. Should not be used for purposes outside the framework. This method is public in order to get the space to pick it up.
    • getOriginatorId

      public Long getOriginatorId()
      Sender of the message. This is the value you would use to reply to when using the space.
    • setOriginatorId

      public void setOriginatorId(Long originatorId)
    • isOfType

      public boolean isOfType(Class<?> clazz)
      Use this method to figure out if the payload is of a certain type.
    • setAddress

      public void setAddress(Long whichActorToSendTo)