Class: LogStash::Outputs::HttpCodec::RetryTimerTask

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

Instance Method Summary collapse

Constructor Details

#initialize(pending, event, attempt) ⇒ RetryTimerTask

Returns a new instance of RetryTimerTask.



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

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

Instance Method Details

#runObject



141
142
143
# File 'lib/logstash/outputs/httpcodec.rb', line 141

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