5#include <userver/kafka/message.hpp>
67class ConsumerScope
final {
73 using Callback = std::function<
void(MessageBatchView)>;
78 ConsumerScope(ConsumerScope&&)
noexcept =
delete;
79 ConsumerScope& operator=(ConsumerScope&&)
noexcept =
delete;
88 void Start(Callback callback);
104 void Stop()
noexcept;
118 friend class impl::Consumer;
120 explicit ConsumerScope(impl::Consumer& consumer)
noexcept;
122 impl::Consumer& consumer_;