Class FreshnessBasedConsumptionStatusChecker


  • public class FreshnessBasedConsumptionStatusChecker
    extends IngestionBasedConsumptionStatusChecker
    This class is used at startup time to have a more accurate estimate of the catchup period in which no query execution happens and consumers try to catch up to the latest messages available in streams. To achieve this, every time status check is called - IngestionBasedConsumptionStatusChecker.getNumConsumingSegmentsNotReachedIngestionCriteria() - for each consuming segment, we check if either: - the segment's latest ingested offset has reached the current stream offset that's - the last ingested message is within _minFreshnessMs of the current system time