Aller au contenu
Français

DistributedPubSub

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

Defined in: src/cluster/pubsub/DistributedPubSubExtension.ts:24

System-wide access to the DistributedPubSubMediator for a given Cluster. Call DistributedPubSub.get(system, cluster).mediator to grab a ref and send Subscribe / Publish / … messages to it.

new DistributedPubSub(system): DistributedPubSub

Defined in: src/cluster/pubsub/DistributedPubSubExtension.ts:28

ActorSystem

DistributedPubSub

get mediator(): ActorRef<MediatorMessage>

Defined in: src/cluster/pubsub/DistributedPubSubExtension.ts:73

The ref of the mediator — throws if start() hasn’t been called.

ActorRef<MediatorMessage>

isStarted(): boolean

Defined in: src/cluster/pubsub/DistributedPubSubExtension.ts:78

boolean


start(cluster, options?): ActorRef<MediatorMessage>

Defined in: src/cluster/pubsub/DistributedPubSubExtension.ts:35

Bind the mediator to a specific Cluster. Idempotent per Cluster — re-binding to the same cluster is a no-op; re-binding to a different cluster throws.

Cluster

DistributedPubSubOptions = ...

ActorRef<MediatorMessage>