Skip to content

SingletonAddress

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.

1 exports Added in v4.0.0 Source

Schemas

Represents the unique address of an singleton within the cluster.

Signature

declare class SingletonAddress extends {
  readonly name: string;
  readonly shardId: ShardId;
} {
  constructor(...args: [props: {
    readonly name: string;
    readonly shardId: ShardId;
  }, options?: MakeOptions]);
  readonly "~effect/cluster/SingletonAddress": "~effect/cluster/SingletonAddress";
  "~effect/interfaces/Equal"(that: SingletonAddress): boolean;
  "~effect/interfaces/Hash"(): number;
}