Package akka.actor
Class RootActorPath
- java.lang.Object
-
- akka.actor.RootActorPath
-
- All Implemented Interfaces:
ActorPath,java.io.Serializable,java.lang.Comparable<ActorPath>,scala.Equals,scala.Product
public final class RootActorPath extends java.lang.Object implements ActorPath, scala.Product, java.io.Serializable
Root of the hierarchy of ActorPaths. There is exactly root per ActorSystem and node (for remote-enabled or clustered systems).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RootActorPath(Address address, java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ActorPath$div(java.lang.String child)Create a new child actor path.static java.lang.String$lessinit$greater$default$2()Addressaddress()The Address under which this path can be reached; walks up the tree to the RootActorPath.static RootActorPathapply(Address address, java.lang.String name)static java.lang.Stringapply$default$2()booleancanEqual(java.lang.Object x$1)intcompareTo(ActorPath other)RootActorPathcopy(Address address, java.lang.String name)Addresscopy$default$1()java.lang.Stringcopy$default$2()scala.collection.immutable.Iterable<java.lang.String>elements()Sequence of names for this path from root to this.booleanequals(java.lang.Object x$1)inthashCode()java.lang.Stringname()The name of the actor that this path refers to.ActorPathparent()The path for the parent actor.intproductArity()java.lang.ObjectproductElement(int x$1)java.lang.StringproductElementName(int x$1)scala.collection.Iterator<java.lang.Object>productIterator()java.lang.StringproductPrefix()RootActorPathroot()Walk up the tree to obtain and return the RootActorPath.java.lang.StringtoSerializationFormat()Generate full String representation including the uid for the actor cell instance as URI fragment.java.lang.StringtoSerializationFormatWithAddress(Address addr)Generate full String representation including the uid for the actor cell instance as URI fragment, replacing the Address in the RootActor Path with the given one unless this path’s address includes host and port information.java.lang.StringtoString()java.lang.StringtoStringWithAddress(Address addr)Generate String representation, replacing the Address in the RootActor Path with the given one unless this path’s address includes host and port information.static scala.Option<scala.Tuple2<Address,java.lang.String>>unapply(RootActorPath x$0)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface akka.actor.ActorPath
$div, child, descendant, getElements, toStringWithoutAddress
-
-
-
-
Constructor Detail
-
RootActorPath
public RootActorPath(Address address, java.lang.String name)
-
-
Method Detail
-
$lessinit$greater$default$2
public static java.lang.String $lessinit$greater$default$2()
-
apply
public static RootActorPath apply(Address address, java.lang.String name)
-
apply$default$2
public static java.lang.String apply$default$2()
-
unapply
public static scala.Option<scala.Tuple2<Address,java.lang.String>> unapply(RootActorPath x$0)
-
address
public Address address()
Description copied from interface:ActorPathThe Address under which this path can be reached; walks up the tree to the RootActorPath.
-
name
public java.lang.String name()
Description copied from interface:ActorPathThe name of the actor that this path refers to.
-
parent
public ActorPath parent()
Description copied from interface:ActorPathThe path for the parent actor.
-
root
public RootActorPath root()
Description copied from interface:ActorPathWalk up the tree to obtain and return the RootActorPath.
-
$div
public ActorPath $div(java.lang.String child)
Description copied from interface:ActorPathCreate a new child actor path.
-
elements
public scala.collection.immutable.Iterable<java.lang.String> elements()
Description copied from interface:ActorPathSequence of names for this path from root to this. Performance implication: has to allocate a list.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toSerializationFormat
public java.lang.String toSerializationFormat()
Description copied from interface:ActorPathGenerate full String representation including the uid for the actor cell instance as URI fragment. This representation should be used as serialized representation instead oftoString.- Specified by:
toSerializationFormatin interfaceActorPath
-
toStringWithAddress
public java.lang.String toStringWithAddress(Address addr)
Description copied from interface:ActorPathGenerate String representation, replacing the Address in the RootActor Path with the given one unless this path’s address includes host and port information.- Specified by:
toStringWithAddressin interfaceActorPath
-
toSerializationFormatWithAddress
public java.lang.String toSerializationFormatWithAddress(Address addr)
Description copied from interface:ActorPathGenerate full String representation including the uid for the actor cell instance as URI fragment, replacing the Address in the RootActor Path with the given one unless this path’s address includes host and port information. This representation should be used as serialized representation instead oftoStringWithAddress.- Specified by:
toSerializationFormatWithAddressin interfaceActorPath
-
compareTo
public int compareTo(ActorPath other)
- Specified by:
compareToin interfacejava.lang.Comparable<ActorPath>
-
copy
public RootActorPath copy(Address address, java.lang.String name)
-
copy$default$1
public Address copy$default$1()
-
copy$default$2
public java.lang.String copy$default$2()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArityin interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElementin interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equalsin interfacescala.Equals- Overrides:
equalsin classjava.lang.Object
-
-