public class LocalActorRef extends ActorRefWithCell implements LocalRef
INTERNAL API
| Constructor and Description |
|---|
LocalActorRef(ActorSystemImpl _system,
Props _props,
akka.dispatch.MessageDispatcher _dispatcher,
akka.dispatch.MailboxType _mailboxType,
InternalActorRef _supervisor,
ActorPath path) |
| Modifier and Type | Method and Description |
|---|---|
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,
akka.dispatch.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(akka.dispatch.sysmsg.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() |
isLocalcompareTo, equals, forward, hashCode, noSender, tell, toStringpublic LocalActorRef(ActorSystemImpl _system, Props _props, akka.dispatch.MessageDispatcher _dispatcher, akka.dispatch.MailboxType _mailboxType, InternalActorRef _supervisor, ActorPath path)
public ActorPath path()
ActorRefprotected ActorCell newActorCell(ActorSystemImpl system, InternalActorRef ref, Props props, akka.dispatch.MessageDispatcher dispatcher, InternalActorRef supervisor)
protected ActorContext actorContext()
public boolean isTerminated()
isTerminated in class InternalActorRefpublic void start()
start in class InternalActorRefpublic void suspend()
suspend in class InternalActorRefpublic void resume(java.lang.Throwable causedByFailure)
resume in class InternalActorRefcausedByFailure - (undocumented)public void stop()
stop in class InternalActorRefpublic InternalActorRef getParent()
InternalActorRefgetParent in class InternalActorRefpublic ActorRefProvider provider()
InternalActorRefprovider in class InternalActorRefpublic scala.collection.immutable.Iterable<ActorRef> children()
children in class ActorRefWithCellpublic InternalActorRef getSingleChild(java.lang.String name)
getSingleChild in class ActorRefWithCellname - (undocumented)public InternalActorRef getChild(scala.collection.Iterator<java.lang.String> names)
InternalActorRefgetChild in class InternalActorRefnames - (undocumented)public ActorCell underlying()
underlying in class ActorRefWithCellpublic void sendSystemMessage(akka.dispatch.sysmsg.SystemMessage message)
sendSystemMessage in class InternalActorRefpublic void restart(java.lang.Throwable cause)
restart in class InternalActorRefprotected java.lang.Object writeReplace()