Class LogLag


  • public class LogLag
    extends Object
    Represent the number of messages between 2 offsets
    Since:
    9.3
    • Field Detail

      • lowerOffset

        protected final long lowerOffset
      • upperOffset

        protected final long upperOffset
      • lag

        protected final long lag
      • upper

        protected final long upper
    • Constructor Detail

      • LogLag

        public LogLag​(long lowerOffset,
                      long upperOffset)
      • LogLag

        public LogLag​(long lowerOffset,
                      long upperOffset,
                      long lag,
                      long upper)
    • Method Detail

      • of

        public static LogLag of​(long lowerOffset,
                                long upperOffset)
      • of

        public static LogLag of​(long lag)
      • lag

        public long lag()
        Returns the number of messages between lower and upper offsets.
      • upper

        public long upper()
        Convert the upperOffset into a number of messages.
      • lower

        public long lower()
        Convert the lowerOffset into a number of messages.
      • upperOffset

        public long upperOffset()
      • lowerOffset

        public long lowerOffset()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object