public class LocalActorRef extends ActorRefWithCell implements LocalRef
INTERNAL API
Constructor and Description |
---|
LocalActorRef(ActorSystemImpl _system,
Props _props,
MessageDispatcher _dispatcher,
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()
INTERNAL API: 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() |
isLocal
compareTo, equals, forward, hashCode, noSender, tell, toString
public LocalActorRef(ActorSystemImpl _system, Props _props, MessageDispatcher _dispatcher, MailboxType _mailboxType, InternalActorRef _supervisor, ActorPath path)
public ActorPath path()
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() throws java.io.ObjectStreamException
java.io.ObjectStreamException