DurableEffect
in package
Read onlyYes
FinalYes
Tags
Table of Contents
Properties
- $replyMsg : mixed
- $replyTo : ActorRef|null
- $sideEffects : array<string|int, mixed>
- $state : object|null
- $type : DurableEffectType
Methods
- none() : self
- persist() : self
- reply() : self
- stash() : self
- stop() : self
- thenReply() : self
- thenRun() : self
- unhandled() : self
Properties
$replyMsg
public
mixed
$replyMsg
= null
$replyTo
public
ActorRef|null
$replyTo
= null
$sideEffects
public
array<string|int, mixed>
$sideEffects
= []
$state
public
object|null
$state
= null
$type
public
DurableEffectType
$type
Methods
none()
public
static none() : self
Return values
selfpersist()
public
static persist(object $newState) : self
Parameters
- $newState : object
Return values
selfreply()
public
static reply(ActorRef $to, object $message) : self
Parameters
- $to : ActorRef
- $message : object
Return values
selfstash()
public
static stash() : self
Return values
selfstop()
public
static stop() : self
Return values
selfthenReply()
public
thenReply(ActorRef $to, callable(object): object $fn) : self
Parameters
- $to : ActorRef
- $fn : callable(object): object
-
receives final state, returns reply message
Return values
selfthenRun()
public
thenRun(callable(object): void $fn) : self
Parameters
- $fn : callable(object): void
-
receives final state
Return values
selfunhandled()
public
static unhandled() : self