userver: kafka::OffsetRange Struct Reference
Loading...
Searching...
No Matches
kafka::OffsetRange Struct Referencefinal

#include <userver/kafka/offset_range.hpp>

Detailed Description

Represents the range of offsets for certain topic.

Definition at line 10 of file offset_range.hpp.

Public Attributes

std::uint64_t low {}
 The low watermark offset. It indicates the earliest available offset in Kafka.
 
std::uint64_t high {}
 The high watermark offset. It indicates the next offset that will be written in Kafka.
 

Member Data Documentation

◆ high

std::uint64_t kafka::OffsetRange::high {}

The high watermark offset. It indicates the next offset that will be written in Kafka.

Note
high offset is not required to be committed yet. Max value is std::int64_t::max() according to Kafka protocol document.

Definition at line 19 of file offset_range.hpp.

◆ low

std::uint64_t kafka::OffsetRange::low {}

The low watermark offset. It indicates the earliest available offset in Kafka.

Note
low offset is guaranteed to be committed. Max value is std::int64_t::max() according to Kafka protocol document.

Definition at line 14 of file offset_range.hpp.


The documentation for this struct was generated from the following file: