ClusterSingletonManagerOptionsType
ClusterSingletonManagerOptionsType<
T> =object
Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:9
Plain options-object shape consumed by a ClusterSingletonManager.
Type Parameters
Section titled “Type Parameters”T
Properties
Section titled “Properties”acquireRetryIntervalMs?
Section titled “acquireRetryIntervalMs?”
readonlyoptionalacquireRetryIntervalMs?:number
Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:21
Retry interval for lease.acquire() after a failed attempt. Default: 5 s.
cluster
Section titled “cluster”
readonlycluster:Cluster
Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:10
lease?
Section titled “lease?”
readonlyoptionallease?:Lease
Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:19
Optional split-brain protection — see StartSingletonOptionsType.lease.
readonlyoptionalrole?:string
Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:17
Optional role — only nodes with this role will host the singleton.
singletonActor
Section titled “singletonActor”
readonlysingletonActor:ActorClassOrFactory<T>
Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:14
How to construct the singleton actor. Only instantiated on the leader.
singletonActorOptions?
Section titled “singletonActorOptions?”
readonlyoptionalsingletonActorOptions?:ActorOptions<T>
Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:15
typeName
Section titled “typeName”
readonlytypeName:string
Defined in: src/cluster/singleton/ClusterSingletonManagerOptions.ts:12
Logical name for this singleton; also used as the child-actor name.
