Class: RailsTransactionalOutbox::DatadogLatencyReporterScheduler

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_transactional_outbox/datadog_latency_reporter_scheduler.rb

Instance Method Summary collapse

Constructor Details

#initialize(config: RailsTransactionalOutbox.configuration) ⇒ DatadogLatencyReporterScheduler

Returns a new instance of DatadogLatencyReporterScheduler.



15
16
17
# File 'lib/rails_transactional_outbox/datadog_latency_reporter_scheduler.rb', line 15

def initialize(config: RailsTransactionalOutbox.configuration)
  @config = config
end

Instance Method Details

#add_to_scheduleObject



19
20
21
# File 'lib/rails_transactional_outbox/datadog_latency_reporter_scheduler.rb', line 19

def add_to_schedule
  find || create
end