Class OffsetCriteria


  • public class OffsetCriteria
    extends Object
    Defines and builds the offset criteria for consumption from a stream
    • Field Detail

      • SMALLEST_OFFSET_CRITERIA

        public static final OffsetCriteria SMALLEST_OFFSET_CRITERIA
      • LARGEST_OFFSET_CRITERIA

        public static final OffsetCriteria LARGEST_OFFSET_CRITERIA
    • Method Detail

      • isSmallest

        public boolean isSmallest()
        True if the offset criteria is defined to read from smallest available offset
        Returns:
      • isLargest

        public boolean isLargest()
        True if the offset criteria is defined to read from the largest known offset
        Returns:
      • isPeriod

        public boolean isPeriod()
        True if the offset criteria is defined as a period string
        Returns:
      • isTimestamp

        public boolean isTimestamp()
        True if the offset criteria is defined as a timestamp string
        Returns:
      • isCustom

        public boolean isCustom()
        True if the offset criteria is defined as a custom format string
        Returns:
      • getOffsetString

        public String getOffsetString()
        Getter for offset string
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object