Class: LogStash::Outputs::Http::RetryTimerTask

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

Instance Method Summary collapse

Constructor Details

#initialize(pending, event, attempt) ⇒ RetryTimerTask

Returns a new instance of RetryTimerTask.



116
117
118
119
120
121
# File 'lib/logstash/outputs/http.rb', line 116

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

Instance Method Details

#runObject



123
124
125
# File 'lib/logstash/outputs/http.rb', line 123

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