Class: RetryOnDeadlock::Configuration
- Inherits:
-
Object
- Object
- RetryOnDeadlock::Configuration
- Defined in:
- lib/retry_on_deadlock/configuration.rb
Instance Attribute Summary collapse
-
#always_retry ⇒ Object
Returns the value of attribute always_retry.
-
#enable_logging ⇒ Object
Returns the value of attribute enable_logging.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#max_retries ⇒ Object
Returns the value of attribute max_retries.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_retry ⇒ Object
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_logging ⇒ Object
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_level ⇒ Object
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 |
#logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/retry_on_deadlock/configuration.rb', line 3 def logger @logger end |
#max_retries ⇒ Object
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 |