Class: Fluent::TimerWatcher

Inherits:
Coolio::TimerWatcher
  • Object
show all
Defined in:
lib/fluent/plugin/in_ironio.rb

Overview

End Input class

Instance Method Summary collapse

Constructor Details

#initialize(interval, repeat, &callback) ⇒ TimerWatcher

Returns a new instance of TimerWatcher.



116
117
118
119
# File 'lib/fluent/plugin/in_ironio.rb', line 116

def initialize(interval, repeat, &callback)
  @callback = callback
  super(interval, repeat)
end

Instance Method Details

#on_timerObject



121
122
123
# File 'lib/fluent/plugin/in_ironio.rb', line 121

def on_timer
  @callback.call
end