Aller au contenu
Français

EntityEnvelope

Ce contenu n’est pas encore disponible dans votre langue.

EntityEnvelope<TMessage> = object

Defined in: src/cluster/sharding/ShardingProtocol.ts:111

Addresses one entity by id instead of relying on extractEntityId.

The region wraps every message bound for a local entity in this envelope before handing it to the owning Shard — the shard has no extractor of its own, and the id has already been computed one level up. It is also the on-the-wire shape a remote region forwards, so an envelope that arrives inside a ShardEnvelope routes exactly like a locally created one.

TMessage = unknown

readonly entityId: string

Defined in: src/cluster/sharding/ShardingProtocol.ts:113


readonly kind: "sharding.EntityEnvelope"

Defined in: src/cluster/sharding/ShardingProtocol.ts:112


readonly message: TMessage

Defined in: src/cluster/sharding/ShardingProtocol.ts:114