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

Returns a new instance of TimerWatcher.



138
139
140
141
# File 'lib/fluent/plugin/in_appdynamics.rb', line 138

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

Instance Method Details

#on_timerObject



143
144
145
# File 'lib/fluent/plugin/in_appdynamics.rb', line 143

def on_timer
  @callback.call
end