Expand description
Producer types (org.apache.kafka.clients.producer)
Re-exports§
pub use callback::Callback;
Modules§
- callback
- Producer callback interface.
Structs§
- Kafka
Producer - A Kafka client that publishes records to the Kafka cluster.
- Mock
Producer - A mock of the producer interface for testing code that uses Kafka.
- Mock
Producer Options - Parameters for
MockProducer::with_options. - Mock
Producer Options Builder - Fluent builder for
MockProducerOptions. - Producer
Buffer Exhausted Error - This error is returned if the producer cannot allocate memory for a
record within
max.block.msdue to the buffer being too full. In earlier versions aTimeoutErrorwas returned instead of this. To keep existing checks working,Error::is_timeout_erroranswerstruefor it. - Producer
Config - Configuration for the Kafka Producer. Documentation for these configurations can be found in the Kafka documentation.
- Producer
Record - 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.
- Producer
Record Options - The parameters of Java’s widest
ProducerRecordconstructor (ProducerRecord(String, Integer, Long, K, V, Iterable<Header>),ProducerRecord#ProducerRecord). - Producer
Record Options Builder - Fluent builder for
ProducerRecordOptions. - Record
Metadata - The metadata for a record that has been acknowledged by the server.
- Round
Robin Partitioner - 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
- Producer
- The interface for the
KafkaProducer.