6#include <userver/utils/fast_pimpl.hpp>
7#include <userver/utils/span.hpp>
25 Message(Message&&)
noexcept;
26 Message& operator=(Message&&)
noexcept =
delete;
28 Message(
const Message&) =
delete;
29 Message& operator=(
const Message&) =
delete;
31 const std::string& GetTopic()
const;
32 std::string_view GetKey()
const;
33 std::string_view GetPayload()
const;
34 std::optional<std::chrono::milliseconds> GetTimestamp()
const;
35 int GetPartition()
const;
36 std::int64_t GetOffset()
const;
39 friend class impl::ConsumerImpl;
41 explicit Message(impl::MessageHolder&& message);
44 using DataStorage = utils::FastPimpl<MessageData, 72, 8>;
49using MessageBatchView =
utils::span<
const Message>;