5#include <userver/kafka/consumer_scope.hpp>
7#include <userver/components/component_base.hpp>
8#include <userver/utils/fast_pimpl.hpp>
9#include <userver/utils/statistics/entry.hpp>
11USERVER_NAMESPACE_BEGIN
58 static constexpr std::string_view kName =
"kafka-consumer";
60 ConsumerComponent(
const components::ComponentConfig& config,
62 ~ConsumerComponent()
override;
64 ConsumerScope GetConsumer();
69 static constexpr std::size_t kImplSize = 2480;
70 static constexpr std::size_t kImplAlign = 16;
71 utils::FastPimpl<impl::Consumer, kImplSize, kImplAlign> consumer_;
75 utils::statistics::Entry statistics_holder_;