Class RootActorPath

java.lang.Object
org.apache.pekko.actor.RootActorPath
All Implemented Interfaces:
Serializable, Comparable<ActorPath>, ActorPath, scala.Equals, scala.Product

public final class RootActorPath extends Object implements ActorPath, scala.Product, Serializable
Root of the hierarchy of ActorPaths. There is exactly root per ActorSystem and node (for remote-enabled or clustered systems).
See Also:
  • Constructor Details

    • RootActorPath

      public RootActorPath(Address address, String name)
  • Method Details

    • $lessinit$greater$default$2

      public static String $lessinit$greater$default$2()
    • apply

      public static RootActorPath apply(Address address, String name)
    • apply$default$2

      public static String apply$default$2()
    • unapply

      public static scala.Option<scala.Tuple2<Address,String>> unapply(RootActorPath x$0)
    • address

      public Address address()
      Description copied from interface: ActorPath
      The Address under which this path can be reached; walks up the tree to the RootActorPath.
      Specified by:
      address in interface ActorPath
    • name

      public String name()
      Description copied from interface: ActorPath
      The name of the actor that this path refers to.
      Specified by:
      name in interface ActorPath
    • parent

      public ActorPath parent()
      Description copied from interface: ActorPath
      The path for the parent actor.
      Specified by:
      parent in interface ActorPath
    • root

      public RootActorPath root()
      Description copied from interface: ActorPath
      Walk up the tree to obtain and return the RootActorPath.
      Specified by:
      root in interface ActorPath
    • $div

      public ActorPath $div(String child)
      Description copied from interface: ActorPath
      Create a new child actor path.
      Specified by:
      $div in interface ActorPath
    • elements

      public scala.collection.immutable.Iterable<String> elements()
      Description copied from interface: ActorPath
      Sequence of names for this path from root to this. Performance implication: has to allocate a list.
      Specified by:
      elements in interface ActorPath
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toSerializationFormat

      public String toSerializationFormat()
      Description copied from interface: ActorPath
      Generate full String representation including the uid for the actor cell instance as URI fragment. This representation should be used as serialized representation instead of toString.
      Specified by:
      toSerializationFormat in interface ActorPath
    • toStringWithAddress

      public String toStringWithAddress(Address addr)
      Description copied from interface: ActorPath
      Generate String representation, replacing the Address in the RootActor Path with the given one unless this path&rsquo;s address includes host and port information.
      Specified by:
      toStringWithAddress in interface ActorPath
    • toSerializationFormatWithAddress

      public String toSerializationFormatWithAddress(Address addr)
      Description copied from interface: ActorPath
      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&rsquo;s address includes host and port information. This representation should be used as serialized representation instead of toStringWithAddress.
      Specified by:
      toSerializationFormatWithAddress in interface ActorPath
    • compareTo

      public int compareTo(ActorPath other)
      Specified by:
      compareTo in interface Comparable<ActorPath>
    • copy

      public RootActorPath copy(Address address, String name)
    • copy$default$1

      public Address copy$default$1()
    • copy$default$2

      public String copy$default$2()
    • productPrefix

      public String productPrefix()
      Specified by:
      productPrefix in interface scala.Product
    • productArity

      public int productArity()
      Specified by:
      productArity in interface scala.Product
    • productElement

      public Object productElement(int x$1)
      Specified by:
      productElement in interface scala.Product
    • productIterator

      public scala.collection.Iterator<Object> productIterator()
      Specified by:
      productIterator in interface scala.Product
    • canEqual

      public boolean canEqual(Object x$1)
      Specified by:
      canEqual in interface scala.Equals
    • productElementName

      public String productElementName(int x$1)
      Specified by:
      productElementName in interface scala.Product
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object x$1)
      Specified by:
      equals in interface scala.Equals
      Overrides:
      equals in class Object