Class: Lhm::Throttler::LegacyTime
- 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
Instance Method Summary collapse
-
#initialize(timeout, stride) ⇒ LegacyTime
constructor
A new instance of LegacyTime.
Methods inherited from Time
Methods included from BackoffReduction
Methods included from Command
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 |