Class: AgentHarness::RetryConfig
- Inherits:
-
Object
- Object
- AgentHarness::RetryConfig
- Defined in:
- lib/agent_harness/configuration.rb
Overview
Retry configuration
Instance Attribute Summary collapse
-
#base_delay ⇒ Object
Returns the value of attribute base_delay.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#exponential_base ⇒ Object
Returns the value of attribute exponential_base.
-
#jitter ⇒ Object
Returns the value of attribute jitter.
-
#max_attempts ⇒ Object
Returns the value of attribute max_attempts.
-
#max_delay ⇒ Object
Returns the value of attribute max_delay.
Instance Method Summary collapse
-
#initialize ⇒ RetryConfig
constructor
A new instance of RetryConfig.
Constructor Details
#initialize ⇒ RetryConfig
Returns a new instance of RetryConfig.
202 203 204 205 206 207 208 209 |
# File 'lib/agent_harness/configuration.rb', line 202 def initialize @enabled = true @max_attempts = 3 @base_delay = 1.0 @max_delay = 60.0 @exponential_base = 2.0 @jitter = true end |
Instance Attribute Details
#base_delay ⇒ Object
Returns the value of attribute base_delay.
200 201 202 |
# File 'lib/agent_harness/configuration.rb', line 200 def base_delay @base_delay end |
#enabled ⇒ Object
Returns the value of attribute enabled.
200 201 202 |
# File 'lib/agent_harness/configuration.rb', line 200 def enabled @enabled end |
#exponential_base ⇒ Object
Returns the value of attribute exponential_base.
200 201 202 |
# File 'lib/agent_harness/configuration.rb', line 200 def exponential_base @exponential_base end |
#jitter ⇒ Object
Returns the value of attribute jitter.
200 201 202 |
# File 'lib/agent_harness/configuration.rb', line 200 def jitter @jitter end |
#max_attempts ⇒ Object
Returns the value of attribute max_attempts.
200 201 202 |
# File 'lib/agent_harness/configuration.rb', line 200 def max_attempts @max_attempts end |
#max_delay ⇒ Object
Returns the value of attribute max_delay.
200 201 202 |
# File 'lib/agent_harness/configuration.rb', line 200 def max_delay @max_delay end |