Raxol.Core.Behaviours.Lifecycle behaviour (Raxol v2.0.1)
View SourceCommon behavior for lifecycle management across different components.
This behavior defines a consistent interface for components that have initialization, start, stop, and cleanup phases.
Summary
Callbacks
Checks if the component is healthy and running.
Initializes the component with the given options.
Restarts the component. Default implementation stops then starts.
Starts the component. Called after successful initialization.
Stops the component gracefully.
Cleans up resources. Always called during shutdown.
Functions
Default implementations for optional callbacks.
Types
Callbacks
Checks if the component is healthy and running.
Initializes the component with the given options.
Restarts the component. Default implementation stops then starts.
Starts the component. Called after successful initialization.
Stops the component gracefully.
Cleans up resources. Always called during shutdown.