|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectakka.actor.ActorRef
akka.actor.InternalActorRef
akka.actor.ActorRefWithCell
akka.actor.LocalActorRef
public class LocalActorRef
Local (serializable) ActorRef that is used when referencing the Actor on its "home" node.
INTERNAL API
Constructor Summary | |
---|---|
LocalActorRef(ActorSystemImpl _system,
Props _props,
MessageDispatcher _dispatcher,
MailboxType _mailboxType,
InternalActorRef _supervisor,
ActorPath path)
|
Method Summary | |
---|---|
protected ActorContext |
actorContext()
|
scala.collection.immutable.Iterable<ActorRef> |
children()
|
InternalActorRef |
getChild(scala.collection.Iterator<java.lang.String> names)
Obtain ActorRef by possibly traversing the actor tree or looking it up at some provider-specific location. |
InternalActorRef |
getParent()
Obtain parent of this ref; used by getChild for ".." paths. |
InternalActorRef |
getSingleChild(java.lang.String name)
Method for looking up a single child beneath this actor. |
boolean |
isTerminated()
Is the actor terminated? If this method returns true, it will never return false again, but if it returns false, you cannot be sure if it's alive still (race condition) |
protected ActorCell |
newActorCell(ActorSystemImpl system,
InternalActorRef ref,
Props props,
MessageDispatcher dispatcher,
InternalActorRef supervisor)
|
ActorPath |
path()
Returns the path for this actor (from this actor up to the root actor). |
ActorRefProvider |
provider()
Get a reference to the actor ref provider which created this ref. |
void |
restart(java.lang.Throwable cause)
|
void |
resume(java.lang.Throwable causedByFailure)
Resumes a suspended actor. |
void |
sendSystemMessage(SystemMessage message)
|
void |
start()
Starts the actor after initialization. |
void |
stop()
Shuts down the actor and its message queue |
void |
suspend()
Suspends the actor so that it will not process messages until resumed. |
ActorCell |
underlying()
|
protected java.lang.Object |
writeReplace()
|
Methods inherited from class akka.actor.InternalActorRef |
---|
isLocal |
Methods inherited from class akka.actor.ActorRef |
---|
compareTo, equals, forward, hashCode, noSender, tell, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface akka.actor.LocalRef |
---|
isLocal |
Constructor Detail |
---|
public LocalActorRef(ActorSystemImpl _system, Props _props, MessageDispatcher _dispatcher, MailboxType _mailboxType, InternalActorRef _supervisor, ActorPath path)
Method Detail |
---|
public ActorPath path()
ActorRef
path
in class ActorRef
protected ActorCell newActorCell(ActorSystemImpl system, InternalActorRef ref, Props props, MessageDispatcher dispatcher, InternalActorRef supervisor)
protected ActorContext actorContext()
public boolean isTerminated()
isTerminated
in class InternalActorRef
public void start()
start
in class InternalActorRef
public void suspend()
suspend
in class InternalActorRef
public void resume(java.lang.Throwable causedByFailure)
resume
in class InternalActorRef
causedByFailure
- (undocumented)public void stop()
stop
in class InternalActorRef
public InternalActorRef getParent()
InternalActorRef
getParent
in class InternalActorRef
public ActorRefProvider provider()
InternalActorRef
provider
in class InternalActorRef
public scala.collection.immutable.Iterable<ActorRef> children()
children
in class ActorRefWithCell
public InternalActorRef getSingleChild(java.lang.String name)
getSingleChild
in class ActorRefWithCell
name
- (undocumented)
public InternalActorRef getChild(scala.collection.Iterator<java.lang.String> names)
InternalActorRef
getChild
in class InternalActorRef
names
- (undocumented)
public ActorCell underlying()
underlying
in class ActorRefWithCell
public void sendSystemMessage(SystemMessage message)
sendSystemMessage
in class InternalActorRef
public void restart(java.lang.Throwable cause)
restart
in class InternalActorRef
protected java.lang.Object writeReplace()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |