Nexus API Reference

ActorState : string
in package

Tags
psalm-api

Internal lifecycle state machine for actors.

Table of Contents

Cases

New  = 'new'
Running  = 'running'
Starting  = 'starting'
Stopped  = 'stopped'
Stopping  = 'stopping'
Suspended  = 'suspended'

Methods

canTransitionTo()  : bool
Returns true if a transition from this state to the target state is valid.

Cases

Methods

canTransitionTo()

Returns true if a transition from this state to the target state is valid.

public canTransitionTo(self $target) : bool

Valid transitions: New -> Starting Starting -> Running Running -> Suspended, Stopping, Starting (supervised restart) Suspended -> Running, Stopping, Starting (supervised restart) Stopping -> Stopped

Parameters
$target : self
Return values
bool

        
On this page

Search results