Class: Eventboss::Manager
- Inherits:
-
Object
- Object
- Eventboss::Manager
- Defined in:
- lib/eventboss/manager.rb
Constant Summary collapse
- MIN_DISPATCH_INTERVAL =
0.1
Instance Method Summary collapse
-
#initialize(fetcher, polling_strategy, executor, queue_listeners, concurrency, error_handlers) ⇒ Manager
constructor
A new instance of Manager.
- #start ⇒ Object
Constructor Details
#initialize(fetcher, polling_strategy, executor, queue_listeners, concurrency, error_handlers) ⇒ Manager
Returns a new instance of Manager.
5 6 7 8 9 10 11 12 13 |
# File 'lib/eventboss/manager.rb', line 5 def initialize(fetcher, polling_strategy, executor, queue_listeners, concurrency, error_handlers) @fetcher = fetcher @polling_strategy = polling_strategy @max_processors = concurrency @busy_processors = Concurrent::AtomicFixnum.new(0) @executor = executor @queue_listeners = queue_listeners @error_handlers = Array(error_handlers) end |