Package org.nuxeo.lib.stream.log
Class Latency
java.lang.Object
org.nuxeo.lib.stream.log.Latency
Extends LogLag with lower and upper timestamps to express lag as a latency.
- Since:
- 10.1
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasJson()
static Latency
key()
Returns the key associated with the lower timestamp.lag()
long
latency()
Returns the latency expressed in millisecond.long
lower()
Returns the lower timestamp.static Latency
static Latency
toString()
long
upper()
Returns the upper timestamp.
-
Field Details
-
lag
-
lower
protected final long lower -
upper
protected final long upper -
key
-
-
Constructor Details
-
Latency
-
-
Method Details
-
noLatency
-
fromJson
-
of
-
latency
public long latency()Returns the latency expressed in millisecond. -
lower
public long lower()Returns the lower timestamp. -
upper
public long upper()Returns the upper timestamp. -
lag
-
key
Returns the key associated with the lower timestamp. -
toString
-
asJson
-