Zum Inhalt springen
Deutsch

ShardKeyedClass

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

ShardKeyedClass<TCommand> = object

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

A class that declares its own sharded-entity identity as a static.

The static is the carrier because TypeScript’s implements constrains only the instance side of a class — see SingletonKeyedClass for the full reasoning. It also composes with any base class, which matters because a sharded entity is usually a PersistentActor.

TCommand

readonly shard: ShardKey<TCommand>

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