userver: userver/kafka/offset_range.hpp Source File
Loading...
Searching...
No Matches
offset_range.hpp
Go to the documentation of this file.
1#pragma once
2
3/// @file userver/kafka/offset_range.hpp
4/// @brief @copybrief kafka::OffsetRange
5
6#include <cstdint>
7
8USERVER_NAMESPACE_BEGIN
9
10namespace kafka {
11
12/// @brief Represents the range of offsets for certain topic.
13struct OffsetRange final {
14 /// @brief The low watermark offset. It indicates the earliest available offset in Kafka.
15 /// @note low offset is guaranteed to be committed. Max value is std::int64_t::max() according to Kafka protocol
16 /// document.
17 std::uint64_t low{};
18
19 /// @brief The high watermark offset. It indicates the next offset that will be written in Kafka.
20 /// @note high offset is not required to be committed yet. Max value is std::int64_t::max() according to Kafka
21 /// protocol document.
22 std::uint64_t high{};
23};
24
25} // namespace kafka
26
27USERVER_NAMESPACE_END