Class: Lhm::Throttler::LegacyTime

Inherits:
Time
  • Object
show all
Defined in:
lib/lhm/throttler/time.rb

Constant Summary

Constants inherited from Time

Time::DEFAULT_BACKOFF_REDUCTION_FACTOR, Time::DEFAULT_STRIDE, Time::DEFAULT_TIMEOUT, Time::MIN_STRIDE_SIZE

Constants included from BackoffReduction

BackoffReduction::DEFAULT_BACKOFF_REDUCTION_FACTOR, BackoffReduction::MIN_STRIDE_SIZE

Instance Attribute Summary

Attributes inherited from Time

#stride, #timeout_seconds

Instance Method Summary collapse

Methods inherited from Time

#execute

Methods included from BackoffReduction

#backoff_stride

Methods included from Command

#run

Constructor Details

#initialize(timeout, stride) ⇒ LegacyTime

Returns a new instance of LegacyTime.



28
29
30
31
# File 'lib/lhm/throttler/time.rb', line 28

def initialize(timeout, stride)
  @timeout_seconds = timeout / 1000.0
  @stride = stride
end