跳转到内容
简体中文

ClusterSingletonManagerOptionsType

此内容尚不支持你的语言。

ClusterSingletonManagerOptionsType<T> = object

Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:9

Plain options-object shape consumed by a ClusterSingletonManager.

T

readonly optional acquireRetryIntervalMs?: number

Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:21

Retry interval for lease.acquire() after a failed attempt. Default: 5 s.


readonly cluster: Cluster

Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:10


readonly optional lease?: Lease

Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:19

Optional split-brain protection — see StartSingletonOptionsType.lease.


readonly optional role?: string

Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:17

Optional role — only nodes with this role will host the singleton.


readonly singletonActor: ActorClassOrFactory<T>

Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:14

How to construct the singleton actor. Only instantiated on the leader.


readonly optional singletonActorOptions?: ActorOptions<T>

Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:15


readonly typeName: string

Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:12

Logical name for this singleton; also used as the child-actor name.