Class: Metricstore::Incrementer

Inherits:
Updater
  • Object
show all
Defined in:
lib/metricstore/incrementer.rb

Instance Attribute Summary

Attributes inherited from Updater

#handle_update_result

Instance Method Summary collapse

Methods inherited from Updater

#backlog, #healthy?, #initialize, #start!, #stop!

Constructor Details

This class inherits a constructor from Metricstore::Updater

Instance Method Details

#increment(key, delta, ttl = nil) ⇒ Object



4
5
6
7
# File 'lib/metricstore/incrementer.rb', line 4

def increment(key, delta, ttl=nil)
  return if delta.zero?
  update(key, delta, ttl)
end