Class: Desiru::Jobs::RetryStrategies::FixedDelay
- Inherits:
-
Object
- Object
- Desiru::Jobs::RetryStrategies::FixedDelay
- Defined in:
- lib/desiru/jobs/retry_strategies.rb
Overview
Fixed delay strategy
Instance Attribute Summary collapse
-
#delay ⇒ Object
readonly
Returns the value of attribute delay.
Instance Method Summary collapse
- #delay_for(_retry_count) ⇒ Object
-
#initialize(delay: 5) ⇒ FixedDelay
constructor
A new instance of FixedDelay.
Constructor Details
#initialize(delay: 5) ⇒ FixedDelay
Returns a new instance of FixedDelay.
53 54 55 |
# File 'lib/desiru/jobs/retry_strategies.rb', line 53 def initialize(delay: 5) @delay = delay end |
Instance Attribute Details
#delay ⇒ Object (readonly)
Returns the value of attribute delay.
51 52 53 |
# File 'lib/desiru/jobs/retry_strategies.rb', line 51 def delay @delay end |
Instance Method Details
#delay_for(_retry_count) ⇒ Object
57 58 59 |
# File 'lib/desiru/jobs/retry_strategies.rb', line 57 def delay_for(_retry_count) delay end |