Struct rdkafka::producer::base_producer::ThreadedProducer[][src]

pub struct ThreadedProducer<C> where
    C: ProducerContext + 'static, 
{ /* fields omitted */ }
Expand description

A low-level Kafka producer with a separate thread for event handling.

The ThreadedProducer is a BaseProducer with a separate thread dedicated to calling poll at regular intervals in order to execute any queued events, such as delivery notifications. The thread will be automatically stopped when the producer is dropped.

Implementations

Sends a message to Kafka.

See the documentation for BaseProducer::send for details.

Polls the internal producer.

This is not normally required since the ThreadedProducer has a thread dedicated to calling poll regularly.

Trait Implementations

Executes the destructor for this type. Read more

Creates a client from a client configuration. The default client context will be used. Read more

Creates a client from a client configuration and a client context.

Returns the Client underlying this producer.

Flushes any pending messages. Read more

Returns the number of messages that are either waiting to be sent or are sent but are waiting to be acknowledged. Read more

Enable sending transactions with this producer. Read more

Begins a new transaction. Read more

Associates an offset commit operation with this transaction. Read more

Commits the current transaction. Read more

Aborts the current transaction. Read more

Returns a reference to the ProducerContext used to create this producer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.