Package org.nuxeo.lib.stream.log
Class LogLag
- java.lang.Object
-
- org.nuxeo.lib.stream.log.LogLag
-
public class LogLag extends Object
Represent the number of messages between 2 offsets- Since:
- 9.3
-
-
Field Summary
Fields Modifier and Type Field Description protected longlagprotected longlowerOffsetprotected longupperprotected longupperOffset
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()longlag()Returns the number of messages between lower and upper offsets.longlower()Convert the lowerOffset into a number of messages.longlowerOffset()static LogLagof(long lag)static LogLagof(long lowerOffset, long upperOffset)static LogLagof(List<LogLag> lags)StringtoString()longupper()Convert the upperOffset into a number of messages.longupperOffset()
-
-
-
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()
-
-