public class ActorMessage
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private java.lang.Object |
payLoad |
private MessageStream |
sender |
private static long |
serialVersionUID |
Modifier | Constructor and Description |
---|---|
protected |
ActorMessage()
Constructor for serialization
|
|
ActorMessage(java.lang.Object payLoad,
MessageStream sender)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
static <T> ActorMessage |
build(T payLoad)
Factory method to create instances of ActorMessage with given payload.
|
java.lang.Object |
getPayLoad() |
MessageStream |
getSender() |
java.lang.String |
toString() |
private static final long serialVersionUID
private java.lang.Object payLoad
private MessageStream sender
public ActorMessage(java.lang.Object payLoad, MessageStream sender)
payLoad
- The original messagesender
- The sending actor, null, if the message was not sent by an actorprotected ActorMessage()
public java.lang.Object getPayLoad()
public MessageStream getSender()
public static <T> ActorMessage build(T payLoad)
payLoad
- The original messagepublic java.lang.String toString()
toString
in class java.lang.Object