Class: Fluent::TimerWatcher
- Inherits:
-
Coolio::TimerWatcher
- Object
- Coolio::TimerWatcher
- Fluent::TimerWatcher
- Defined in:
- lib/fluent/plugin/in_ironio.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
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_timer ⇒ Object
121 122 123 |
# File 'lib/fluent/plugin/in_ironio.rb', line 121 def on_timer @callback.call end |