class Fluent::Plugin::RdsPgsqlLogInput::TimerWatcher

Public Class Methods

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

Public Instance Methods

on_timer() click to toggle source
# File lib/fluent/plugin/in_rds_pgsql_log.rb, line 228
def on_timer
  @callback.call
end