Class: ExcessFlow::Configuration

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

Overview

ExcessFlow::Configuration

Holds configuration for rate limiter with writeable attributes allowing dynamic change of configuration during runtime

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



30
31
32
33
34
35
# File 'lib/excess_flow/configuration.rb', line 30

def initialize
  @connection_pool = extract_connection_pool
  @connection_timeout = extract_connection_timeout
  @redis_url = extract_redis_url
  @sentinels = process_sentinels
end

Instance Attribute Details

#connection_poolObject

Returns the value of attribute connection_pool.



23
24
25
# File 'lib/excess_flow/configuration.rb', line 23

def connection_pool
  @connection_pool
end

#connection_timeoutObject

Returns the value of attribute connection_timeout.



23
24
25
# File 'lib/excess_flow/configuration.rb', line 23

def connection_timeout
  @connection_timeout
end

#redis_urlObject

Returns the value of attribute redis_url.



23
24
25
# File 'lib/excess_flow/configuration.rb', line 23

def redis_url
  @redis_url
end

#sentinelsObject

Returns the value of attribute sentinels.



23
24
25
# File 'lib/excess_flow/configuration.rb', line 23

def sentinels
  @sentinels
end