class Fluent::NewTailInput::TailWatcher::Closer

Public Class Methods

new(interval, tw, log, &callback) click to toggle source
Calls superclass method
# File lib/fluent/plugin/in_tail.rb, line 593
def initialize(interval, tw, log, &callback)
  @callback = callback
  @tw = tw
  @log = log
  super(interval, false)
end

Public Instance Methods

on_timer() click to toggle source
# File lib/fluent/plugin/in_tail.rb, line 600
def on_timer
  @callback.call(@tw)
rescue => e
  @log.error e.to_s
  @log.error_backtrace(e.backtrace)
ensure
  detach
end