Computes the delay before next read from kafka based on tracked samples of historical reads and consecutive full buffer reads seen.
Computes the delay before next read from kafka based on tracked samples of historical reads and consecutive full buffer reads seen.
Tracks bytes read from kafka and the corresponding timestamp based on specified sampling rate Also keeps track of consecutive full buffer reads seen.
Tracks bytes read from kafka and the corresponding timestamp based on specified sampling rate Also keeps track of consecutive full buffer reads seen.
Implements logic to track reads and compute delay for following reads so as to ensure we always read close to bufferSize of data from Kafka.