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 long
lag
protected long
lowerOffset
protected long
upper
protected long
upperOffset
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
long
lag()
Returns the number of messages between lower and upper offsets.long
lower()
Convert the lowerOffset into a number of messages.long
lowerOffset()
static LogLag
of(long lag)
static LogLag
of(long lowerOffset, long upperOffset)
static LogLag
of(List<LogLag> lags)
String
toString()
long
upper()
Convert the upperOffset into a number of messages.long
upperOffset()
-
-
-
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()
-
-