ClusterSingleton
Defined in: src/cluster/singleton/ClusterSingleton.ts:58
Extension registered on the ActorSystem that manages all
ClusterSingletons declared in the process. Use
system.extension(ClusterSingletonId).start(cluster, ...) to materialize
one; subsequent calls with the same typeName return the same handle.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ClusterSingleton(
system):ClusterSingleton
Defined in: src/cluster/singleton/ClusterSingleton.ts:60
Parameters
Section titled “Parameters”system
Section titled “system”Returns
Section titled “Returns”ClusterSingleton
Methods
Section titled “Methods”get<
T>(typeName):Option<SingletonHandle<T>>
Defined in: src/cluster/singleton/ClusterSingleton.ts:106
Look up a previously-started singleton by typeName.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”typeName
Section titled “typeName”string
Returns
Section titled “Returns”start()
Section titled “start()”start<
T>(cluster,settings):SingletonHandle<T>
Defined in: src/cluster/singleton/ClusterSingleton.ts:62
Type Parameters
Section titled “Type Parameters”T