Nexus API Reference

AbstractActor
in package
implements ActorHandler

AbstractYes
Tags
psalm-api

Base class for class-based actors with lifecycle hooks.

Extends ActorHandler with optional onPreStart() and onPostStop() hooks. Override these methods to perform initialization or cleanup.

template

T of object

implements

ActorHandler<T>

Table of Contents

Interfaces

ActorHandler

Methods

onPostStop()  : void
Called before the actor stops. Override for cleanup logic.
onPreStart()  : void
Called after the actor starts. Override for initialization logic.

Methods

onPreStart()

Called after the actor starts. Override for initialization logic.

public onPreStart(ActorContext<string|int, T$_ctx) : void
Parameters
$_ctx : ActorContext<string|int, T>

        
On this page

Search results