SingletonAddress.ts
SingletonAddress.ts overview
Section titled “SingletonAddress.ts overview”The SingletonAddress module models the runtime address assigned to a cluster
singleton registration. The address pairs the singleton name with the
ShardId selected from that name and its shard group, giving sharding one
stable value for registration events, equality, hashing, and local singleton
fiber tracking.
Since v4.0.0
Exports Grouped by Category
Section titled “Exports Grouped by Category”address
Section titled “address”SingletonAddress (class)
Section titled “SingletonAddress (class)”Represents the unique address of an singleton within the cluster.
Signature
declare class SingletonAddressSince v4.0.0
[Hash.symbol] (method)
Section titled “[Hash.symbol] (method)”Computes a structural hash from the singleton name and shard id.
Signature
declare const [Hash.symbol]: () => numberSince v4.0.0
[Equal.symbol] (method)
Section titled “[Equal.symbol] (method)”Compares singleton addresses by name and shard id.
Signature
declare const [Equal.symbol]: (that: SingletonAddress) => booleanSince v4.0.0
[TypeId] (property)
Section titled “[TypeId] (property)”Marks this value as a cluster singleton address for runtime guards.
Signature
readonly [TypeId]: "~effect/cluster/SingletonAddress"Since v4.0.0