Nexus API Reference

LogActor
in package
implements StatefulActorHandler

Read onlyYes
FinalYes
Tags
psalm-api

Drains Record messages from its mailbox and dispatches each to the configured handlers. Per-handler exceptions are caught and reported to STDERR — the actor must never crash on a sink failure, because a crash would lose any records sitting behind it in the mailbox.

State is the immutable handler list. The list is supplied via the Props factory at spawn time and never mutates.

implements

Table of Contents

Interfaces

StatefulActorHandler

Methods

__construct()  : mixed
handle()  : BehaviorWithState<Record, array<int, Handler>>
Handle an incoming message with the current state.
initialState()  : array<int, Handler>
Provide the initial state for this actor.

Methods

__construct()

public __construct(array<int, Handler$handlers) : mixed
Parameters
$handlers : array<int, Handler>

initialState()

Provide the initial state for this actor.

public initialState() : array<int, Handler>
Attributes
#[Override]
Return values
array<int, Handler>
On this page

Search results