org.semispace.actor
Class ActorMessage

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

public class ActorMessage
extends Object


Constructor Summary
ActorMessage()
           
 
Method Summary
 Long getAddress()
          The destination actor for the message.
 Long getOriginatorId()
          Sender of the message.
 Object getPayload()
          The payload of this message
 boolean isOfType(Class<?> clazz)
          Use this method to figure out if the payload is of a certain type.
 void setAddress(Long whichActorToSendTo)
           
 void setOriginatorId(Long originatorId)
           
 void setPayload(Object payload)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActorMessage

public ActorMessage()
Method Detail

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)


Copyright © 2008-2012. All Rights Reserved.