Class: RabbitMQ::Actors::Worker Abstract
- Inherits:
-
Base::Consumer
- Object
- Base::Agent
- Base::Consumer
- RabbitMQ::Actors::Worker
- Defined in:
- lib/rabbitmq/actors/patterns/master_workers/worker.rb
Overview
This class is abstract.
Subclass and override #perform to define your customized worker class.
A consumer of messages from RabbitMQ based on queue name.
Instance Attribute Summary
Attributes inherited from Base::Agent
Instance Method Summary collapse
-
#initialize(queue_name:, **opts) ⇒ Worker
constructor
Rest of options required by your subclass.
Methods inherited from Base::Consumer
Constructor Details
#initialize(queue_name:, **opts) ⇒ Worker
Rest of options required by your subclass.
58 59 60 |
# File 'lib/rabbitmq/actors/patterns/master_workers/worker.rb', line 58 def initialize(queue_name:, **opts) super(opts.merge(queue_name: queue_name, exclusive: false)) end |