ActorPath
此内容尚不支持你的语言。
Defined in: src/ActorPath.ts:98
Hierarchical, unique path identifying an actor inside an ActorSystem.
Format: actor-ts://
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ActorPath(
name,parent?,systemName?,uid?):ActorPath
Defined in: src/ActorPath.ts:99
Parameters
Section titled “Parameters”string
parent?
Section titled “parent?”ActorPath | null
systemName?
Section titled “systemName?”string = 'default'
number = 0
Returns
Section titled “Returns”ActorPath
Properties
Section titled “Properties”
readonlyname:string
Defined in: src/ActorPath.ts:100
parent
Section titled “parent”
readonlyparent:ActorPath|null=null
Defined in: src/ActorPath.ts:101
systemName
Section titled “systemName”
readonlysystemName:string='default'
Defined in: src/ActorPath.ts:102
readonlyuid:number=0
Defined in: src/ActorPath.ts:103
Methods
Section titled “Methods”child()
Section titled “child()”child(
name,uid?):ActorPath
Defined in: src/ActorPath.ts:113
Create a child path under this one. Inherits the constructor’s name validation, which is what makes an empty segment impossible here while still allowing one for a root.
Parameters
Section titled “Parameters”string
number = 0
Returns
Section titled “Returns”ActorPath
depth()
Section titled “depth()”depth():
number
Defined in: src/ActorPath.ts:129
Full depth of the path (root has depth 0).
Returns
Section titled “Returns”number
elements()
Section titled “elements()”elements():
string[]
Defined in: src/ActorPath.ts:118
All path segments from root to this path (including root).
Returns
Section titled “Returns”string[]
equals()
Section titled “equals()”equals(
other):boolean
Defined in: src/ActorPath.ts:143
Parameters
Section titled “Parameters”ActorPath
Returns
Section titled “Returns”boolean
isAncestorOf()
Section titled “isAncestorOf()”isAncestorOf(
other):boolean
Defined in: src/ActorPath.ts:134
True if this path is an ancestor of other.
Parameters
Section titled “Parameters”ActorPath
Returns
Section titled “Returns”boolean
toString()
Section titled “toString()”toString():
string
Defined in: src/ActorPath.ts:158
Canonical URI form: actor-ts://system/user/foo/bar.
Memoized, because this is a hot read on an immutable value. Every field is
readonly and the parent chain is fixed at construction, so the rendering
cannot change once computed. It is called far more often than it looks:
equals renders both sides, ref comparison goes through equals, and
dead-letter routing, the receptionist and the DevTools taps all key on the
string — so a deep path was re-walking its ancestors and re-joining an array
on each one.
Returns
Section titled “Returns”string
