Parent

Methods

Class/Module Index [+]

Quicksearch

Fluent::TailInput::TailWatcher::TimerWatcher

Public Class Methods

new(interval, repeat, &callback) click to toggle source
# File lib/fluent/plugin/in_tail.rb, line 239
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_tail.rb, line 244
def on_timer
  @callback.call
rescue
  # TODO log?
  $log.error $!.to_s
  $log.error_backtrace
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.