Class: Fluent::TimerWatcher
- Inherits:
-
Coolio::TimerWatcher
- Object
- Coolio::TimerWatcher
- Fluent::TimerWatcher
- Defined in:
- lib/fluent/plugin/in_appdynamics.rb
Overview
End Input class
Instance Method Summary collapse
-
#initialize(interval, repeat, &callback) ⇒ TimerWatcher
constructor
A new instance of TimerWatcher.
- #on_timer ⇒ Object
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_timer ⇒ Object
150 151 152 |
# File 'lib/fluent/plugin/in_appdynamics.rb', line 150 def on_timer @callback.call end |