Class: RedlockForCollection::Configuration
- Inherits:
-
Object
- Object
- RedlockForCollection::Configuration
- Defined in:
- lib/redlock_for_collection/configuration.rb
Instance Attribute Summary collapse
-
#pool ⇒ Object
Returns the value of attribute pool.
-
#pool_size ⇒ Object
Returns the value of attribute pool_size.
-
#pool_timeout ⇒ Object
Returns the value of attribute pool_timeout.
-
#redis_urls ⇒ Object
Returns the value of attribute redis_urls.
-
#retry_count ⇒ Object
Returns the value of attribute retry_count.
-
#retry_delay ⇒ Object
Returns the value of attribute retry_delay.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
13 14 15 16 17 18 19 20 |
# File 'lib/redlock_for_collection/configuration.rb', line 13 def initialize @pool_size = 5 @pool_timeout = 5 @redis_urls = ['redis://localhost:6379'] @retry_delay = 50 @retry_count = 5 @pool = nil end |
Instance Attribute Details
#pool ⇒ Object
Returns the value of attribute pool.
6 7 8 |
# File 'lib/redlock_for_collection/configuration.rb', line 6 def pool @pool end |
#pool_size ⇒ Object
Returns the value of attribute pool_size.
6 7 8 |
# File 'lib/redlock_for_collection/configuration.rb', line 6 def pool_size @pool_size end |
#pool_timeout ⇒ Object
Returns the value of attribute pool_timeout.
6 7 8 |
# File 'lib/redlock_for_collection/configuration.rb', line 6 def pool_timeout @pool_timeout end |
#redis_urls ⇒ Object
Returns the value of attribute redis_urls.
6 7 8 |
# File 'lib/redlock_for_collection/configuration.rb', line 6 def redis_urls @redis_urls end |
#retry_count ⇒ Object
Returns the value of attribute retry_count.
6 7 8 |
# File 'lib/redlock_for_collection/configuration.rb', line 6 def retry_count @retry_count end |
#retry_delay ⇒ Object
Returns the value of attribute retry_delay.
6 7 8 |
# File 'lib/redlock_for_collection/configuration.rb', line 6 def retry_delay @retry_delay end |