Nexus API Reference

ActorHandler

Tags
psalm-api

Minimal contract for class-based actors.

Implement this interface to define an actor as a class with a handle() method instead of using Behavior closures directly. The class can then be spawned via Props::fromFactory() or Props::fromContainer().

template

T of object

Table of Contents

Methods

handle()  : Behavior<string|int, T>
Handle an incoming message and return the next behavior.

Methods


        
On this page

Search results