abstract class Symphony::Application

Defined in:

symphony/application.cr

Instance Method Summary

Instance Method Detail

abstract def create_input_readers : Array(BackgroundService) #

[View source]
abstract def create_output_writers : Array(BackgroundService) #

[View source]
def force_shutdown(timeout = 30.seconds, min_reader_timeout = 2.seconds, min_writer_timeout = 3.seconds) #

[View source]
def graceful_shutdown : Bool #

[View source]
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

[View source]
def run(*, install_default_signal_handler = true) #

[View source]
def shutdown_on_signal(*, signals = {Signal::INT, Signal::TERM}, timeouts = {graceful: 5.seconds, forced: 30.seconds, hard_kill: 40.seconds}) #

[View source]
def stop_accepting_new_messages #

[View source]