userver: userver/kafka/producer.hpp File Reference
Loading...
Searching...
No Matches
producer.hpp File Reference

Detailed Description

Apache Kafka Producer Client.

Definition in file producer.hpp.

Go to the source code of this file.

#include <cstdint>
#include <type_traits>
#include <utility>
#include <userver/engine/task/task_processor_fwd.hpp>
#include <userver/engine/task/task_with_result.hpp>
#include <userver/kafka/exceptions.hpp>
#include <userver/kafka/headers.hpp>
#include <userver/kafka/impl/messages.hpp>
#include <userver/utils/fast_pimpl.hpp>
#include <userver/utils/statistics/writer.hpp>
+ This graph shows which files directly or indirectly include this file:

Classes

class  kafka::Producer
 Apache Kafka Producer Client. More...
 

Variables

const std::optional< std::uint32_t > kafka::kUnassignedPartition
 Unassigned partition.
 

Variable Documentation

◆ kUnassignedPartition

const std::optional<std::uint32_t> kafka::kUnassignedPartition
extern

Unassigned partition.

The unassigned partition is used by the producer API for messages that should be partitioned using the default partitioner.

Note
By default partitions are distributed uniformly.