Package org.nuxeo.lib.stream.log
Class LogLag
java.lang.Object
org.nuxeo.lib.stream.log.LogLag
Represent the number of messages between 2 offsets
- Since:
- 9.3
-
Field Summary
Modifier and TypeFieldDescriptionprotected final long
protected final long
protected final long
protected final long
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
static LogLag
of
(long lag) static LogLag
of
(long lowerOffset, long upperOffset) static LogLag
toString()
long
upper()
Convert the upperOffset into a number of messages.long
-
Field Details
-
lowerOffset
protected final long lowerOffset -
upperOffset
protected final long upperOffset -
lag
protected final long lag -
upper
protected final long upper
-
-
Constructor Details
-
LogLag
public LogLag(long lowerOffset, long upperOffset) -
LogLag
public LogLag(long lowerOffset, long upperOffset, long lag, long upper)
-
-
Method Details
-
of
-
of
-
of
-
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() -
toString
-
equals
-
hashCode
public int hashCode()
-