Skip to main content

Module producer

Module producer 

Source
Expand description

Producer types (org.apache.kafka.clients.producer)

Structs§

KafkaProducer
A Kafka client that publishes records to the Kafka cluster.
MockProducer
A mock of the producer interface for testing code that uses Kafka.
MockProducerOptions
Parameters for MockProducer::with_options.
MockProducerOptionsBuilder
Fluent builder for MockProducerOptions.
ProducerBufferExhaustedError
The producer cannot allocate memory for a record because the buffer pool is full and the max blocking time has elapsed.
ProducerConfig
Configuration for the Kafka Producer.
ProducerRecord
A key/value pair to be sent to Kafka. This consists of a topic name to which the record is being sent, an optional partition number, and an optional key and value.
ProducerRecordOptions
The parameters of Java’s widest ProducerRecord constructor (ProducerRecord(String, Integer, Long, K, V, Iterable<Header>), ProducerRecord.java:69).
ProducerRecordOptionsBuilder
Fluent builder for ProducerRecordOptions.
RecordMetadata
The metadata for a record that has been acknowledged by the server.
RoundRobinPartitioner
The “Round-Robin” partitioner.

Traits§

DynProducer
A dyn-compatible Producer, for holding different producer implementations behind one type, e.g. Vec<Box<dyn DynProducer<K, V>>>.
Partitioner
Partitioner interface: compute the partition for a record.
Producer
The interface for the KafkaProducer.

Type Aliases§

Callback
Type alias for the producer send callback.