Package pw.avvero.test.kafka
Class OffsetSnapshotFrame
java.lang.Object
pw.avvero.test.kafka.OffsetSnapshotFrame
The
OffsetSnapshotFrame class is designed for creating and managing a formatted string
representation of offset snapshots within a Kafka environment. It primarily supports logging offset
comparisons and highlights discrepancies between consumer group offsets and partition offsets.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
OffsetSnapshotFrame
public OffsetSnapshotFrame()
-
-
Method Details
-
append
public void append(String consumerGroup, org.apache.kafka.common.TopicPartition topicPartition, Long consumerGroupOffset, Long partitionOffset) Appends a new row to the offset snapshot frame with provided offset details.- Parameters:
consumerGroup- the name of the consumer grouptopicPartition- the topic and partition informationconsumerGroupOffset- the offset of the consumer group for the given partitionpartitionOffset- the current offset of the partition
-
split
public void split() -
toString
-