跳转到内容
简体中文

ShardEntityClass

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

Defined in: src/cluster/sharding/ShardKey.ts:74

…and constructs with no arguments, so passing the class alone is enough. An entity with a dependency-injecting constructor satisfies ShardKeyedClass but not this, which routes it to the start(TheClass, factory) overload.

TCommand

new ShardEntityClass(): Actor<TCommand>

Defined in: src/cluster/sharding/ShardKey.ts:75

Actor<TCommand>

ShardKeyedClass<TCommand>.constructor

readonly shard: ShardKey<TCommand>

Defined in: src/cluster/sharding/ShardKey.ts:65

ShardKeyedClass.shard