Class ActorPath$

java.lang.Object
org.apache.pekko.actor.ActorPath$
All Implemented Interfaces:
Serializable

public class ActorPath$ extends Object implements Serializable
See Also:
  • Field Details

    • MODULE$

      public static final ActorPath$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • ActorPath$

      public ActorPath$()
  • Method Details

    • fromString

      public ActorPath fromString(String s)
      Parse string as actor path; throws java.net.MalformedURLException if unable to do so.
    • validatePathElement

      public final void validatePathElement(String element)
      Validates the given actor path element and throws an InvalidActorNameException if invalid. See isValidPathElement(java.lang.String) for a non-throwing version.

      Parameters:
      element - actor path element to be validated
    • validatePathElement

      public final void validatePathElement(String element, String fullPath)
      Validates the given actor path element and throws an InvalidActorNameException if invalid. See isValidPathElement(java.lang.String) for a non-throwing version.

      Parameters:
      element - actor path element to be validated
      fullPath - optional fullPath element that may be included for better error messages; null if not given
    • isValidPathElement

      public final boolean isValidPathElement(String s)
      This method is used to validate a path element (Actor Name). Since Actors form a tree, it is addressable using an URL, therefore an Actor Name has to conform to: RFC-2396.

      User defined Actor names may not start from a $ sign - these are reserved for system names.