跳转到内容
简体中文

SingletonActorClass

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

Defined in: src/cluster/singleton/SingletonKey.ts:84

…and constructs with no arguments, so passing the class alone is enough.

A class with a dependency-injecting constructor satisfies SingletonKeyedClass but not this — which is exactly what routes it to the start(TheClass, factory) overload instead of producing an error.

TCommand

new SingletonActorClass(): Actor<TCommand>

Defined in: src/cluster/singleton/SingletonKey.ts:85

Actor<TCommand>

SingletonKeyedClass<TCommand>.constructor

readonly singleton: SingletonKey<TCommand>

Defined in: src/cluster/singleton/SingletonKey.ts:74

SingletonKeyedClass.singleton