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.



280
281
282
283
# File 'lib/fluent/plugin/out_forward.rb', line 280

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

Instance Method Details

#on_timerObject



285
286
287
288
289
# File 'lib/fluent/plugin/out_forward.rb', line 285

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