コンテンツにスキップ
日本語

ActorLifecycleEvent

このコンテンツはまだ日本語訳がありません。

Defined in: src/SystemMessages.ts:74

Base class for the actor-lifecycle events published on the EventStream.

Until these existed the event stream carried dead letters, cluster events and broker events — but nothing about actors coming and going, so the only way to learn that the tree had changed was to poll it. A common base lets a subscriber take the whole family with one subscribe(ref, ActorLifecycleEvent) (the stream matches by instanceof, so subclasses reach base subscribers).

Publishing is unconditional but cheap: the event stream skips allocation-free when nothing subscribes to the channel. These are observations, not control flow — nothing in the runtime reacts to them, and a slow subscriber cannot delay an actor’s lifecycle.

new ActorLifecycleEvent(actor): ActorLifecycleEvent

Defined in: src/SystemMessages.ts:79

ActorRef

The actor the event is about.

ActorLifecycleEvent

readonly actor: ActorRef

Defined in: src/SystemMessages.ts:81

The actor the event is about.