Class: Fluent::Cloudfront_LogInput::TimerWatcher
- Inherits:
-
Coolio::TimerWatcher
- Object
- Coolio::TimerWatcher
- Fluent::Cloudfront_LogInput::TimerWatcher
- Defined in:
- lib/fluent/plugin/in_cloudfront_log.rb
Instance Method Summary collapse
-
#initialize(interval, repeat, log, &callback) ⇒ TimerWatcher
constructor
A new instance of TimerWatcher.
- #on_timer ⇒ Object
Constructor Details
#initialize(interval, repeat, log, &callback) ⇒ TimerWatcher
Returns a new instance of TimerWatcher.
182 183 184 185 186 |
# File 'lib/fluent/plugin/in_cloudfront_log.rb', line 182 def initialize(interval, repeat, log, &callback) @callback = callback @log = log super(interval, repeat) end |
Instance Method Details
#on_timer ⇒ Object
188 189 190 |
# File 'lib/fluent/plugin/in_cloudfront_log.rb', line 188 def on_timer @callback.call end |