Package akka.actor
Class VirtualPathContainer
- java.lang.Object
-
- akka.actor.ActorRef
-
- akka.actor.InternalActorRef
-
- akka.actor.VirtualPathContainer
-
- All Implemented Interfaces:
ActorRefScope
,LocalRef
,MinimalActorRef
,ScalaActorRef
,java.io.Serializable
,java.lang.Comparable<ActorRef>
,scala.Serializable
- Direct Known Subclasses:
RemoteSystemDaemon
public class VirtualPathContainer extends InternalActorRef implements MinimalActorRef
InActorSelectionMessage
s onlySelectChildName
elements are supported, otherwise messages are sent toEmptyLocalActorRef
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VirtualPathContainer(ActorRefProvider provider, ActorPath path, InternalActorRef getParent, MarkerLoggingAdapter log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
$bang(java.lang.Object message, ActorRef sender)
InActorSelectionMessage
s onlySelectChildName
elements are supported, otherwise messages are sent toEmptyLocalActorRef
.ActorRef
$bang$default$2(java.lang.Object message)
void
addChild(java.lang.String name, InternalActorRef ref)
void
foreachChild(scala.Function1<ActorRef,scala.runtime.BoxedUnit> f)
InternalActorRef
getChild(java.lang.String name)
InternalActorRef
getChild(scala.collection.Iterator<java.lang.String> name)
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.boolean
hasChildren()
MarkerLoggingAdapter
log()
ActorPath
path()
ActorRefProvider
provider()
Get a reference to the actor ref provider which created this ref.void
removeChild(java.lang.String name)
protected void
removeChild(java.lang.String name, ActorRef ref)
Remove a named child if it matches the ref.-
Methods inherited from class akka.actor.InternalActorRef
isLocal, isTerminated, restart, resume, sendSystemMessage, start, stop, suspend
-
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.MinimalActorRef
isTerminated, restart, resume, sendSystemMessage, start, stop, suspend, writeReplace
-
-
-
-
Constructor Detail
-
VirtualPathContainer
public VirtualPathContainer(ActorRefProvider provider, ActorPath path, InternalActorRef getParent, MarkerLoggingAdapter log)
-
-
Method Detail
-
$bang
public void $bang(java.lang.Object message, ActorRef sender)
InActorSelectionMessage
s onlySelectChildName
elements are supported, otherwise messages are sent toEmptyLocalActorRef
.- Specified by:
$bang
in interfaceMinimalActorRef
- Specified by:
$bang
in interfaceScalaActorRef
- Parameters:
message
- (undocumented)sender
- (undocumented)
-
$bang$default$2
public ActorRef $bang$default$2(java.lang.Object message)
- Specified by:
$bang$default$2
in interfaceMinimalActorRef
- Specified by:
$bang$default$2
in interfaceScalaActorRef
-
addChild
public void addChild(java.lang.String name, InternalActorRef ref)
-
foreachChild
public void foreachChild(scala.Function1<ActorRef,scala.runtime.BoxedUnit> f)
-
getChild
public InternalActorRef getChild(java.lang.String name)
-
getChild
public InternalActorRef getChild(scala.collection.Iterator<java.lang.String> name)
Description copied from class:InternalActorRef
Obtain ActorRef by possibly traversing the actor tree or looking it up at some provider-specific location. This method shall return the end result, i.e. not only the next step in the look-up; this will typically involve recursive invocation. A path element of ".." signifies the parent, a trailing "" element must be disregarded. If the requested path does not exist, return Nobody.- Specified by:
getChild
in interfaceMinimalActorRef
- Specified by:
getChild
in classInternalActorRef
- Parameters:
name
- (undocumented)- Returns:
- (undocumented)
-
getParent
public InternalActorRef getParent()
Description copied from class:InternalActorRef
Obtain parent of this ref; used by getChild for ".." paths.- Specified by:
getParent
in interfaceMinimalActorRef
- Specified by:
getParent
in classInternalActorRef
- Returns:
- (undocumented)
-
hasChildren
public boolean hasChildren()
-
log
public MarkerLoggingAdapter log()
-
provider
public ActorRefProvider provider()
Description copied from class:InternalActorRef
Get a reference to the actor ref provider which created this ref.- Specified by:
provider
in classInternalActorRef
- Returns:
- (undocumented)
-
removeChild
public void removeChild(java.lang.String name)
-
removeChild
protected void removeChild(java.lang.String name, ActorRef ref)
Remove a named child if it matches the ref.- Parameters:
name
- (undocumented)ref
- (undocumented)
-
-