Cyclium. Actor. Server
(Cyclium v0.1.5)
Copy Markdown
GenServer logic for Cyclium actors. Extracted from the macro to keep the Actor module clean and testable.
Summary
Functions
Enters drain mode: stops accepting new episodes but lets active ones finish. Schedule timers are cancelled. Event triggers are ignored.
Initializes actor state from a config map and raw expectations list.
Functions
Enters drain mode: stops accepting new episodes but lets active ones finish. Schedule timers are cancelled. Event triggers are ignored.
Initializes actor state from a config map and raw expectations list.
Used by DynamicActor to start actors from DB-defined configurations without requiring a compiled actor module.
raw_expectations can be {id, opts_keyword_list} tuples (same as from the DSL)
or %Expectation{} structs.