akka.remote
Class RemoteMessage

java.lang.Object
  extended by akka.remote.RemoteMessage

public class RemoteMessage
extends java.lang.Object

RemoteMessage is a wrapper around a message that has come in over the wire, it allows to easily obtain references to the deserialized message, its intended recipient and the sender.


Constructor Summary
RemoteMessage(RemoteProtocol.RemoteMessageProtocol input, ExtendedActorSystem system)
           
 
Method Summary
 java.lang.String originalReceiver()
          Returns a String-representation of the ActorPath that this RemoteMessage is destined for
 scala.Option<java.lang.String> originalSender()
          Returns an Option with the String representation of the ActorPath of the Actor who is the sender of this message
 java.lang.Object payload()
          Returns the message
 java.lang.Class<?> payloadClass()
           
 akka.actor.InternalActorRef recipient()
          Returns a reference to the Actor that this message is destined for.
 ActorRef sender()
          Returns a reference to the Actor that sent this message, or DeadLetterActorRef if not present or found.
 java.lang.String toString()
          Returns a String representation of this RemoteMessage, intended for debugging purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteMessage

public RemoteMessage(RemoteProtocol.RemoteMessageProtocol input,
                     ExtendedActorSystem system)
Method Detail

originalReceiver

public java.lang.String originalReceiver()
Returns a String-representation of the ActorPath that this RemoteMessage is destined for


originalSender

public scala.Option<java.lang.String> originalSender()
Returns an Option with the String representation of the ActorPath of the Actor who is the sender of this message


sender

public ActorRef sender()
Returns a reference to the Actor that sent this message, or DeadLetterActorRef if not present or found.


recipient

public akka.actor.InternalActorRef recipient()
Returns a reference to the Actor that this message is destined for. In case this returns a DeadLetterActorRef, you have access to the path using the "originalReceiver" method.


payload

public java.lang.Object payload()
Returns the message


payloadClass

public java.lang.Class<?> payloadClass()

toString

public java.lang.String toString()
Returns a String representation of this RemoteMessage, intended for debugging purposes.

Overrides:
toString in class java.lang.Object