Class: BarThreadLoop

Inherits:
Archfiend::ThreadLoop show all
Defined in:
lib/archfiend/generators/daemon/templates/app/thread_loops/bar_thread_loop.rb

Overview

A dummy thread loop that logs Hello World every 5 seconds

Constant Summary

Constants inherited from Archfiend::ThreadLoop

Archfiend::ThreadLoop::EXCEPTION_DELAY

Instance Attribute Summary

Attributes inherited from Archfiend::ThreadLoop

#app

Instance Method Summary collapse

Methods inherited from Archfiend::ThreadLoop

inherited, start_all

Methods included from Archfiend::SharedLoop::Runnable

#log_exception, #run

Instance Method Details

#iterateObject



3
4
5
6
7
# File 'lib/archfiend/generators/daemon/templates/app/thread_loops/bar_thread_loop.rb', line 3

def iterate
  msg = "Hello World from #{self.class.name}"
  logger.info(msg)
  sleep 5
end