Package org.apache.pekko.actor
Class ActorPaths
java.lang.Object
org.apache.pekko.actor.ActorPaths
Java API
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ActorPathfromString(String s) Parse string as actor path; throws java.net.MalformedURLException if unable to do so.static final booleanThis method is used to validate a path element (Actor Name).static final voidvalidatePathElement(String element) Validates the given actor path element and throws anInvalidActorNameExceptionif invalid.static final voidvalidatePathElement(String element, String fullPath) Validates the given actor path element and throws anInvalidActorNameExceptionif invalid.
-
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.
-