Class: Sbmt::KafkaProducer::OutboxTransportFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/sbmt/kafka_producer/outbox_transport_factory.rb

Class Method Summary collapse

Class Method Details

.build(topic:, kafka: {}) ⇒ Object



7
8
9
# File 'lib/sbmt/kafka_producer/outbox_transport_factory.rb', line 7

def build(topic:, kafka: {})
  OutboxProducer.new(topic: topic, client: KafkaClientFactory.build(kafka))
end