Class: Fluent::OpenLDAPMonitorInput::TimerWatcher

Inherits:
Coolio::TimerWatcher
  • Object
show all
Defined in:
lib/fluent/plugin/in_openldap_monitor.rb

Instance Method Summary collapse

Constructor Details

#initialize(interval, repeat, &checker) ⇒ TimerWatcher

Returns a new instance of TimerWatcher.



94
95
96
97
# File 'lib/fluent/plugin/in_openldap_monitor.rb', line 94

def initialize(interval, repeat, &checker)
  @checker = checker
  super(interval, repeat)
end

Instance Method Details

#on_timerObject



99
100
101
# File 'lib/fluent/plugin/in_openldap_monitor.rb', line 99

def on_timer
  @checker.call
end