Package org.apache.pekko.actor
Class ActorPaths$
java.lang.Object
org.apache.pekko.actor.ActorPaths$
Java API
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ActorPaths$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString(String s) Parse string as actor path; throws java.net.MalformedURLException if unable to do so.final booleanThis method is used to validate a path element (Actor Name).final voidvalidatePathElement(String element) Validates the given actor path element and throws anInvalidActorNameExceptionif invalid.final voidvalidatePathElement(String element, String fullPath) Validates the given actor path element and throws anInvalidActorNameExceptionif invalid.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
ActorPaths$
public ActorPaths$()
-
-
Method Details
-
fromString
Parse string as actor path; throws java.net.MalformedURLException if unable to do so. -
validatePathElement
Validates the given actor path element and throws anInvalidActorNameExceptionif invalid. SeeisValidPathElement(java.lang.String)for a non-throwing version.- Parameters:
element- actor path element to be validated
-
validatePathElement
Validates the given actor path element and throws anInvalidActorNameExceptionif invalid. SeeisValidPathElement(java.lang.String)for a non-throwing version.- Parameters:
element- actor path element to be validatedfullPath- optional fullPath element that may be included for better error messages; null if not given
-
isValidPathElement
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.
-