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.



278
279
280
281
282
283
284
285
# File 'lib/agent_harness/configuration.rb', line 278

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.



276
277
278
# File 'lib/agent_harness/configuration.rb', line 276

def base_delay
  @base_delay
end

#enabledObject

Returns the value of attribute enabled.



276
277
278
# File 'lib/agent_harness/configuration.rb', line 276

def enabled
  @enabled
end

#exponential_baseObject

Returns the value of attribute exponential_base.



276
277
278
# File 'lib/agent_harness/configuration.rb', line 276

def exponential_base
  @exponential_base
end

#jitterObject

Returns the value of attribute jitter.



276
277
278
# File 'lib/agent_harness/configuration.rb', line 276

def jitter
  @jitter
end

#max_attemptsObject

Returns the value of attribute max_attempts.



276
277
278
# File 'lib/agent_harness/configuration.rb', line 276

def max_attempts
  @max_attempts
end

#max_delayObject

Returns the value of attribute max_delay.



276
277
278
# File 'lib/agent_harness/configuration.rb', line 276

def max_delay
  @max_delay
end