6#include <userver/kafka/headers.hpp>
7#include <userver/utils/fast_pimpl.hpp>
8#include <userver/utils/span.hpp>
9#include <userver/utils/zstring_view.hpp>
11USERVER_NAMESPACE_BEGIN
27 Message(Message&&)
noexcept;
28 Message& operator=(Message&&)
noexcept =
delete;
30 Message(
const Message&) =
delete;
31 Message& operator=(
const Message&) =
delete;
33 const std::string& GetTopic()
const;
34 std::string_view GetKey()
const;
35 std::string_view GetPayload()
const;
36 std::optional<std::chrono::milliseconds> GetTimestamp()
const;
37 int GetPartition()
const;
38 std::int64_t GetOffset()
const;
60 std::optional<std::string_view>
GetHeader(utils::zstring_view name)
const;
63 friend class impl::ConsumerImpl;
65 explicit Message(impl::MessageHolder&& message);
68 using DataStorage = utils::FastPimpl<MessageData, 72, 8>;
73using MessageBatchView = utils::span<
const Message>;