Class: Desiru::Jobs::RetryStrategies::FixedDelay

Inherits:
Object
  • Object
show all
Defined in:
lib/desiru/jobs/retry_strategies.rb

Overview

Fixed delay strategy

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#delayObject (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