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.



135
136
137
138
139
140
# File 'lib/logstash/outputs/http.rb', line 135

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

Instance Method Details

#runObject



142
143
144
# File 'lib/logstash/outputs/http.rb', line 142

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