Class: LogStash::Outputs::HarborBeacon::RetryTimerTask

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

Instance Method Summary collapse

Constructor Details

#initialize(pending, event, attempt) ⇒ RetryTimerTask

Returns a new instance of RetryTimerTask.



151
152
153
154
155
156
# File 'lib/logstash/outputs/harbor_beacon.rb', line 151

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

Instance Method Details

#runObject



158
159
160
# File 'lib/logstash/outputs/harbor_beacon.rb', line 158

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