class Fluent::DfInputTimerWatcher

Public Class Methods

new(interval, repeat, &callback) click to toggle source
Calls superclass method
# File lib/fluent/plugin/in_df.rb, line 83
def initialize(interval, repeat, &callback)
  @callback = callback
  super(interval, repeat)
end

Public Instance Methods

on_timer() click to toggle source
# File lib/fluent/plugin/in_df.rb, line 88
def on_timer
  @callback.call
rescue => e
  $log.error "#{e.class.name} - #{e.message}"
end