Class: Deimos::Consumer
- Inherits:
-
Karafka::BaseConsumer
- Object
- Karafka::BaseConsumer
- Deimos::Consumer
- Defined in:
- lib/deimos/consumer.rb
Overview
Basic consumer class. Inherit from this class and override either consume_message or consume_batch, depending on the ‘:batch` config setting.
Direct Known Subclasses
Instance Method Summary collapse
Methods included from Deimos::Consume::BatchConsumption
Methods included from Deimos::Consume::MessageConsumption
Instance Method Details
#consume ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/deimos/consumer.rb', line 17 def consume if self.topic. else _consume_batch end end |