Class: Fluent::ForwardOutput::HeartbeatRequestTimer

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

Instance Method Summary collapse

Constructor Details

#initialize(interval, callback) ⇒ HeartbeatRequestTimer

Returns a new instance of HeartbeatRequestTimer.



363
364
365
366
# File 'lib/fluent/plugin/out_forward.rb', line 363

def initialize(interval, callback)
  super(interval, true)
  @callback = callback
end

Instance Method Details

#on_timerObject



368
369
370
371
372
# File 'lib/fluent/plugin/out_forward.rb', line 368

def on_timer
  @callback.call
rescue
  # TODO log?
end