public class ActorMessage extends java.lang.Object
An internal representation of received messages holding both the original message plus the sender actor reference. This class is not intended to be use directly by users.
Modifiers | Name | Description |
---|---|---|
private java.lang.Object |
payLoad |
|
private MessageStream |
sender |
|
private static long |
serialVersionUID |
Constructor and description |
---|
ActorMessage
(java.lang.Object payLoad, MessageStream sender) Creates a new instance |
protected ActorMessage
() Constructor for serialization |
Type | Name and description |
---|---|
static ActorMessage |
build(T payLoad) Factory method to create instances of ActorMessage with given payload. |
java.lang.Object |
getPayLoad() |
MessageStream |
getSender() |
java.lang.String |
toString() |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Creates a new instance
payLoad
- The original messagesender
- The sending actor, null, if the message was not sent by an actorConstructor for serialization
Factory method to create instances of ActorMessage with given payload. The sender of the ActorMessage is retrieved from the ReplyRegistry.
payLoad
- The original messageCopyright © 2008–2014 Václav Pech. All Rights Reserved.