Class: Fluent::TimerWatcher

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

Overview

End Input class

Instance Method Summary collapse

Constructor Details

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



145
146
147
148
# File 'lib/fluent/plugin/in_appdynamics.rb', line 145

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

Instance Method Details

#on_timerObject



150
151
152
# File 'lib/fluent/plugin/in_appdynamics.rb', line 150

def on_timer
  @callback.call
end