Class: Deimos::Backends::KafkaAsync
- Includes:
- Phobos::Producer
- Defined in:
- lib/deimos/backends/kafka_async.rb,
sig/defs.rbs
Overview
Backend which produces to Kafka via an async producer.
Class Method Summary collapse
-
.execute(producer_class:, messages:) ⇒ void
:nodoc:.
-
.shutdown_producer ⇒ void
Shut down the producer cleanly.
Methods inherited from Base
Class Method Details
.execute(producer_class:, messages:) ⇒ void
This method returns an undefined value.
:nodoc:
9 10 11 |
# File 'lib/deimos/backends/kafka_async.rb', line 9 def self.execute(producer_class:, messages:) Deimos.producer_for(producer_class.topic).produce_many_async() end |
.shutdown_producer ⇒ void
This method returns an undefined value.
Shut down the producer cleanly.
287 |
# File 'sig/defs.rbs', line 287
def self.shutdown_producer: () -> void
|