5#include <userver/kafka/message.hpp>
66class ConsumerScope
final {
72 using Callback = std::function<
void(MessageBatchView)>;
77 ConsumerScope(ConsumerScope&&)
noexcept =
delete;
78 ConsumerScope& operator=(ConsumerScope&&)
noexcept =
delete;
84 void Start(Callback callback);
117 friend class impl::Consumer;
119 explicit ConsumerScope(impl::Consumer& consumer)
noexcept;
121 impl::Consumer& consumer_;