Class: RetryOnDeadlock::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
11
# File 'lib/retry_on_deadlock/configuration.rb', line 5

def initialize
  @max_retries = 3
  @enable_logging = true
  @log_level = :warning
  @logger = Logger.new(STDOUT)
  @always_retry = false
end

Instance Attribute Details

#always_retryObject

Returns the value of attribute always_retry.



3
4
5
# File 'lib/retry_on_deadlock/configuration.rb', line 3

def always_retry
  @always_retry
end

#enable_loggingObject

Returns the value of attribute enable_logging.



3
4
5
# File 'lib/retry_on_deadlock/configuration.rb', line 3

def enable_logging
  @enable_logging
end

#log_levelObject

Returns the value of attribute log_level.



3
4
5
# File 'lib/retry_on_deadlock/configuration.rb', line 3

def log_level
  @log_level
end

#loggerObject

Returns the value of attribute logger.



3
4
5
# File 'lib/retry_on_deadlock/configuration.rb', line 3

def logger
  @logger
end

#max_retriesObject

Returns the value of attribute max_retries.



3
4
5
# File 'lib/retry_on_deadlock/configuration.rb', line 3

def max_retries
  @max_retries
end