Class: ActiveHook::Server::Config
- Inherits:
-
BaseConfig
- Object
- BaseConfig
- ActiveHook::Server::Config
- Defined in:
- lib/activehook/server/config.rb
Constant Summary collapse
- OTHER_DEFAULTS =
{ workers: 2, queue_threads: 2, retry_threads: 1 }.freeze
Constants inherited from BaseConfig
Instance Attribute Summary collapse
-
#queue_threads ⇒ Object
Returns the value of attribute queue_threads.
-
#retry_threads ⇒ Object
Returns the value of attribute retry_threads.
-
#workers ⇒ Object
Returns the value of attribute workers.
Attributes inherited from BaseConfig
#redis_pool, #redis_url, #signature_header
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #manager_options ⇒ Object
- #worker_options ⇒ Object
Methods inherited from BaseConfig
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
12 13 14 15 |
# File 'lib/activehook/server/config.rb', line 12 def initialize super OTHER_DEFAULTS.each { |key, value| send("#{key}=", value) } end |
Instance Attribute Details
#queue_threads ⇒ Object
Returns the value of attribute queue_threads.
10 11 12 |
# File 'lib/activehook/server/config.rb', line 10 def queue_threads @queue_threads end |
#retry_threads ⇒ Object
Returns the value of attribute retry_threads.
10 11 12 |
# File 'lib/activehook/server/config.rb', line 10 def retry_threads @retry_threads end |
#workers ⇒ Object
Returns the value of attribute workers.
10 11 12 |
# File 'lib/activehook/server/config.rb', line 10 def workers @workers end |
Instance Method Details
#manager_options ⇒ Object
24 25 26 27 28 29 |
# File 'lib/activehook/server/config.rb', line 24 def { workers: workers, options: } end |
#worker_options ⇒ Object
17 18 19 20 21 22 |
# File 'lib/activehook/server/config.rb', line 17 def { queue_threads: queue_threads, retry_threads: retry_threads } end |