userver: userver/kafka/producer_component.hpp Source File
Loading...
Searching...
No Matches
producer_component.hpp
Go to the documentation of this file.
1#pragma once
2
5
6#include <string_view>
7
9
11
12USERVER_NAMESPACE_BEGIN
13
14namespace kafka {
15
36class ProducerComponent final : public components::ComponentBase {
37public:
40 static constexpr std::string_view kName{"kafka-producer"};
41
43 ~ProducerComponent() override;
44
48
50
51private:
52 Producer producer_;
53};
54
55} // namespace kafka
56
57USERVER_NAMESPACE_END