Class: Fluent::Elb_LogInput::TimerWatcher

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of TimerWatcher.



158
159
160
161
# File 'lib/fluent/plugin/in_elb_log.rb', line 158

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

Instance Method Details

#on_timerObject



163
164
165
# File 'lib/fluent/plugin/in_elb_log.rb', line 163

def on_timer
  @callback.call
end