X::Supervisor::Child::Specification
Child specification for supervisor
Constructors
new(id : String, instructions : Array(Instruction::Operation) = [] of Instruction::Operation, upvalues : Array(Value::Context) = [] of Value::Context, subroutines : Hash(String, Instruction::Subroutine) = {} of String => Instruction::Subroutine, globals : Hash(String, Value::Context) = {} of String => Value::Context, type : Type = Type::Worker, restart : RestartType = RestartType::Permanent, shutdown : ShutdownType = ShutdownType::Timeout, shutdown_timeout : Time::Span = 5.seconds, max_restarts : Int32 = 3, restart_window : Time::Span = 5.seconds)
SourceInstance methods
clone
Sourceglobals
Sourceid
Sourceinstructions
Sourcemax_restarts
Sourcerestart
Sourcerestart=(restart : RestartType)
Sourcerestart_window
Sourcerestart_window=(restart_window : Time::Span)
Sourceshutdown
Sourceshutdown=(shutdown : ShutdownType)
Sourceshutdown_timeout
Sourceshutdown_timeout=(shutdown_timeout : Time::Span)
Sourcesubroutines
Sourcetype
Sourcetype=(type : Type)
Sourceupvalues
Source