Kafka::Producer
Inherits Reference / Object
Constants
Constructors
Instance methods
Wait until all outstanding produce requests, et.al, are completed. This should typically be done prior to destroying a producer instance to make sure all queued and in-flight produce requests are completed before terminating.
Calls the rd_kafka_flush C function.
Polls the Kafka handle for events
An application should make sure to call #poll at regular intervals to serve any queued callbacks waiting to be called.
Produce and send a single message to broker.
Raises a Kafka::ProducerException when produce fails.
Calls the rd_kafka_producev C function.
Produce and send a single message to broker.
Raises a Kafka::ProducerException when produce fails.
Calls the rd_kafka_producev C function.
Produce and send a single message to broker.
Raises a Kafka::ProducerException when produce fails.
Calls the rd_kafka_producev C function.
Produce and send a single message to broker.
Raises a Kafka::ProducerException when produce fails.
Calls the rd_kafka_produce C function.
Produce and send multiple messages to broker.
Raises a Kafka::ProducerException when produce fails.
Calls the rd_kafka_produce C function.