Class RecordQueue


  • public class RecordQueue
    extends Object
    RecordQueue is a FIFO queue of StampedRecord (ConsumerRecord + timestamp). It also keeps track of the partition timestamp defined as the largest timestamp seen on the partition so far; this is passed to the timestamp extractor.
    • Method Detail

      • source

        public SourceNode<?,​?> source()
        Returns the corresponding source node in the topology
        Returns:
        SourceNode
      • partition

        public TopicPartition partition()
        Returns the partition with which this queue is associated
        Returns:
        TopicPartition
      • size

        public int size()
        Returns the number of records in the queue
        Returns:
        the number of records
      • isEmpty

        public boolean isEmpty()
        Tests if the queue is empty
        Returns:
        true if the queue is empty, otherwise false
      • headRecordTimestamp

        public long headRecordTimestamp()
        Returns the head record's timestamp
        Returns:
        timestamp
      • headRecordOffset

        public Long headRecordOffset()
      • clear

        public void clear()
        Clear the fifo queue of its elements