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