Class: RosettaQueue::ThreadedManager
- Inherits:
-
BaseManager
- Object
- BaseManager
- RosettaQueue::ThreadedManager
- Defined in:
- lib/rosetta_queue/consumer_managers/threaded.rb
Instance Attribute Summary
Attributes inherited from BaseManager
Instance Method Summary collapse
-
#initialize ⇒ ThreadedManager
constructor
A new instance of ThreadedManager.
- #start ⇒ Object
- #stop ⇒ Object
Methods inherited from BaseManager
Constructor Details
#initialize ⇒ ThreadedManager
Returns a new instance of ThreadedManager.
6 7 8 9 10 11 |
# File 'lib/rosetta_queue/consumer_managers/threaded.rb', line 6 def initialize @threads = {} @running = true @processing = true super end |
Instance Method Details
#start ⇒ Object
13 14 15 16 17 |
# File 'lib/rosetta_queue/consumer_managers/threaded.rb', line 13 def start start_threads join_threads monitor_threads end |
#stop ⇒ Object
19 20 21 |
# File 'lib/rosetta_queue/consumer_managers/threaded.rb', line 19 def stop stop_threads end |