Class: LogStash::Outputs::Dynatrace::RetryTimerTask

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

Instance Method Summary collapse

Constructor Details

#initialize(pending, event, attempt) ⇒ RetryTimerTask

Returns a new instance of RetryTimerTask.



104
105
106
107
108
109
# File 'lib/logstash/outputs/dynatrace.rb', line 104

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

Instance Method Details

#runObject



111
112
113
# File 'lib/logstash/outputs/dynatrace.rb', line 111

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