StatefulActorHandler
in
Tags
Table of Contents
Methods
- handle() : BehaviorWithState<T, S>
- Handle an incoming message with the current state.
- initialState() : S
- Provide the initial state for this actor.
Methods
handle()
Handle an incoming message with the current state.
public
handle(ActorContext<string|int, T> $ctx, T $message, S $state) : BehaviorWithState<T, S>
Parameters
- $ctx : ActorContext<string|int, T>
- $message : T
- $state : S
Return values
BehaviorWithState<T, S>initialState()
Provide the initial state for this actor.
public
initialState() : S