net.ninjacat.drama
Interface ActorRef


public interface ActorRef


Method Summary
 String getName()
           
 void stop()
          Stops actor.
 void tell(Object message)
          Send a message to an actor represented by this reference.
 void tell(Object message, ActorRef sender)
          Send a message to an actor represented by this reference
 

Method Detail

tell

void tell(Object message,
          ActorRef sender)
Send a message to an actor represented by this reference

Parameters:
message - message instance
sender - reference to a sending actor

tell

void tell(Object message)
Send a message to an actor represented by this reference. Receiver method will see sender as null

Parameters:
message - message instance

stop

void stop()
Stops actor. No new messages will be received by the actor after this method is called.


getName

String getName()
Returns:
The name of the actor in its parent ActorSystem


Copyright © 2014. All rights reserved.