class

X::Supervisor::Child::Specification

Inherits Reference / Object

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)
Source

Instance methods

clone
Source
globals
Source
globals=(globals : Hash(String, Value::Context))
Source
id=(id : String)
Source
instructions
Source
instructions=(instructions : Array(Instruction::Operation))
Source
max_restarts
Source
max_restarts=(max_restarts : Int32)
Source
restart
Source
restart=(restart : RestartType)
Source
restart_window
Source
restart_window=(restart_window : Time::Span)
Source
shutdown
Source
shutdown=(shutdown : ShutdownType)
Source
shutdown_timeout
Source
shutdown_timeout=(shutdown_timeout : Time::Span)
Source
subroutines
Source
subroutines=(subroutines : Hash(String, Instruction::Subroutine))
Source
type
Source
type=(type : Type)
Source
upvalues
Source
upvalues=(upvalues : Array(Value::Context))
Source