Class: Deimos::Backends::Base
- Inherits:
-
Object
- Object
- Deimos::Backends::Base
- Defined in:
- lib/deimos/backends/base.rb
Overview
Abstract class for all publish backends.
Direct Known Subclasses
Db, Kafka, KafkaAsync, Test
Class Method Summary collapse
Class Method Details
.execute(producer_class:, messages:) ⇒ void
This method returns an undefined value.
19 20 21 |
# File 'lib/deimos/backends/base.rb', line 19 def execute(producer_class:, messages:) raise NotImplementedError end |
.publish(producer_class:, messages:) ⇒ void
This method returns an undefined value.
11 12 13 14 |
# File 'lib/deimos/backends/base.rb', line 11 def publish(producer_class:, messages:) Deimos.config.logger.info(()) execute(producer_class: producer_class, messages: ) end |