콘텐츠로 이동
한국어

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