abstract class Symphony::Application
- Symphony::Application
- Reference
- Object
Defined in:
symphony/application.crInstance Method Summary
- #create_input_readers : Array(BackgroundService)
- #create_output_writers : Array(BackgroundService)
- #force_shutdown(timeout = 30.seconds, min_reader_timeout = 2.seconds, min_writer_timeout = 3.seconds)
- #graceful_shutdown : Bool
-
#health_check : HealthCheck | Nil
To overwrite, use the following pattern:
- #run(*, install_default_signal_handler = true)
- #shutdown_on_signal(*, signals = {Signal::INT, Signal::TERM}, timeouts = {graceful: 5.seconds, forced: 30.seconds, hard_kill: 40.seconds})
- #stop_accepting_new_messages
Instance Method Detail
def force_shutdown(timeout = 30.seconds, min_reader_timeout = 2.seconds, min_writer_timeout = 3.seconds)
#
def health_check : HealthCheck | Nil
#
To overwrite, use the following pattern:
class HealthCheck < Symphony::HealthCheck
...
end
class Application < Symphony::Application
getter health_check = HealthCheck.new
...
end
def shutdown_on_signal(*, signals = {Signal::INT, Signal::TERM}, timeouts = {graceful: 5.seconds, forced: 30.seconds, hard_kill: 40.seconds})
#