Pular para o conteúdo
Português (BR)

ShardEntityClass

Este conteúdo não está disponível em sua língua ainda.

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