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

#include <userver/kafka/rebalance_types.hpp>

Detailed Description

Represents the topic's partition for certain topic.

Definition at line 16 of file rebalance_types.hpp.

Public Member Functions

 TopicPartitionView (utils::zstring_view topic, std::uint32_t partition_id, std::optional< std::uint64_t > offset)
 

Public Attributes

utils::zstring_view topic
 Topic's name.
 
std::uint32_t partition_id
 Partition ID for a topic.
 
std::optional< std::uint64_t > offset
 Offset for current partition if it has commited offset.
 

Constructor & Destructor Documentation

◆ TopicPartitionView()

kafka::TopicPartitionView::TopicPartitionView ( utils::zstring_view  topic,
std::uint32_t  partition_id,
std::optional< std::uint64_t >  offset 
)
inline

Definition at line 26 of file rebalance_types.hpp.

Member Data Documentation

◆ offset

std::optional<std::uint64_t> kafka::TopicPartitionView::offset

Offset for current partition if it has commited offset.

Definition at line 24 of file rebalance_types.hpp.

◆ partition_id

std::uint32_t kafka::TopicPartitionView::partition_id

Partition ID for a topic.

Definition at line 21 of file rebalance_types.hpp.

◆ topic

utils::zstring_view kafka::TopicPartitionView::topic

Topic's name.

Definition at line 18 of file rebalance_types.hpp.


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