Module: Lhm::Throttler

Included in:
Lhm
Defined in:
lib/lhm/throttler.rb,
lib/lhm/throttler/time.rb,
lib/lhm/throttler/slave_lag.rb

Defined Under Namespace

Classes: Factory, LegacyTime, SlaveLag, Time

Constant Summary collapse

CLASSES =
{ :time_throttler => Throttler::Time, :slave_lag_throttler => Throttler::SlaveLag }

Instance Method Summary collapse

Instance Method Details

#setup_throttler(type, options = {}) ⇒ Object



12
13
14
# File 'lib/lhm/throttler.rb', line 12

def setup_throttler(type, options = {})
  @throttler = Factory.create_throttler(type, options)
end

#throttlerObject



8
9
10
# File 'lib/lhm/throttler.rb', line 8

def throttler
  @throttler ||= Throttler::Time.new
end