Class: AgentHarness::RetryConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/agent_harness/configuration.rb

Overview

Retry configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRetryConfig

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_delayObject

Returns the value of attribute base_delay.



200
201
202
# File 'lib/agent_harness/configuration.rb', line 200

def base_delay
  @base_delay
end

#enabledObject

Returns the value of attribute enabled.



200
201
202
# File 'lib/agent_harness/configuration.rb', line 200

def enabled
  @enabled
end

#exponential_baseObject

Returns the value of attribute exponential_base.



200
201
202
# File 'lib/agent_harness/configuration.rb', line 200

def exponential_base
  @exponential_base
end

#jitterObject

Returns the value of attribute jitter.



200
201
202
# File 'lib/agent_harness/configuration.rb', line 200

def jitter
  @jitter
end

#max_attemptsObject

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_delayObject

Returns the value of attribute max_delay.



200
201
202
# File 'lib/agent_harness/configuration.rb', line 200

def max_delay
  @max_delay
end