Class OffsetSnapshotFrame

java.lang.Object
pw.avvero.test.kafka.OffsetSnapshotFrame

public class OffsetSnapshotFrame extends Object
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 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 group
      topicPartition - the topic and partition information
      consumerGroupOffset - the offset of the consumer group for the given partition
      partitionOffset - the current offset of the partition
    • split

      public void split()
    • toString

      public String toString()
      Overrides:
      toString in class Object