Class: Rosette::Queuing::Worker
- Inherits:
-
Object
- Object
- Rosette::Queuing::Worker
- Defined in:
- lib/rosette/queuing/worker.rb
Overview
Base class for Rosette queue worker implementations. Really just an interface.
Instance Method Summary collapse
-
#initialize(rosette_config, logger, options = {}) ⇒ Worker
constructor
Creates a new worker instance.
-
#start ⇒ void
Tells this worker to start processing jobs.
Constructor Details
#initialize(rosette_config, logger, options = {}) ⇒ Worker
Creates a new worker instance. Options vary per implementation.
16 17 |
# File 'lib/rosette/queuing/worker.rb', line 16 def initialize(rosette_config, logger, = {}) end |
Instance Method Details
#start ⇒ void
This method returns an undefined value.
Tells this worker to start processing jobs. Should block. If not implemented by the derived class, raises NotImplementedError.
23 24 25 26 |
# File 'lib/rosette/queuing/worker.rb', line 23 def start raise NotImplementedError, 'expected to be implemented in derived classes' end |