66 const std::string& name,
67 engine::TaskProcessor& producer_task_processor,
68 const impl::ProducerConfiguration& configuration,
69 const impl::Secret& secrets
79 Producer(
const Producer&) =
delete;
80 Producer(Producer&&) =
delete;
82 Producer& operator=(
const Producer&) =
delete;
83 Producer& operator=(Producer&&) =
delete;
103 utils::zstring_view topic_name,
104 std::string_view key,
105 std::string_view message,
126 template <
typename Messages>
128 std::is_convertible_v<
decltype(std::declval<
const Messages&>()[0]), std::string_view> &&
129 std::is_integral_v<
decltype(std::declval<
const Messages&>().size())>
132 utils::zstring_view topic_name,
133 std::string_view key,
134 const Messages& messages,
138 SendWrapper(topic_name, key, impl::MessagesAdapter{messages}, partition, std::move(headers));
151 std::string topic_name,
165 utils::zstring_view topic_name,
166 std::string_view key,
167 std::string_view message,
168 std::optional<std::uint32_t> partition,
169 impl::HeadersHolder&& headers_holder
173 utils::zstring_view topic_name,
174 std::string_view key,
175 const impl::Messages& messages,
176 std::optional<std::uint32_t> partition,
177 std::vector<impl::HeadersHolder>&& headers_holders
181 utils::zstring_view topic_name,
182 std::string_view key,
183 const impl::Messages& messages,
184 std::optional<std::uint32_t> partition,
188 const std::string name_;
189 engine::TaskProcessor& producer_task_processor_;
191 static constexpr std::size_t kImplSize{960};
192 static constexpr std::size_t kImplAlign{16};
193 utils::FastPimpl<impl::ProducerImpl, kImplSize, kImplAlign> producer_;