Class: LogStash::Outputs::Bcdb::RetryTimerTask

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/outputs/bcdb.rb

Instance Method Summary collapse

Constructor Details

#initialize(pending, event, attempt) ⇒ RetryTimerTask

Returns a new instance of RetryTimerTask.



243
244
245
246
247
248
# File 'lib/logstash/outputs/bcdb.rb', line 243

def initialize(pending, event, attempt)
  @pending = pending
  @event = event
  @attempt = attempt
  super()
end

Instance Method Details

#runObject



250
251
252
# File 'lib/logstash/outputs/bcdb.rb', line 250

def run
  @pending << [@event, @attempt]
end