Class: ServerEngine::ProcessManager::HeartbeatThread

Inherits:
Thread
  • Object
show all
Defined in:
lib/serverengine/process_manager.rb

Instance Method Summary collapse

Constructor Details

#initialize(heartbeat_interval, target, error_proc) ⇒ HeartbeatThread

Returns a new instance of HeartbeatThread.



511
512
513
514
515
516
# File 'lib/serverengine/process_manager.rb', line 511

def initialize(heartbeat_interval, target, error_proc)
  @heartbeat_interval = heartbeat_interval
  @target = target
  @error_proc = error_proc
  super(&method(:main))
end