Package org.nuxeo.lib.stream.log
Class Latency
- java.lang.Object
-
- org.nuxeo.lib.stream.log.Latency
-
public class Latency extends Object
Extends LogLag with lower and upper timestamps to express lag as a latency.- Since:
- 10.1
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asJson()
static Latency
fromJson(String json)
String
key()
Returns the key associated with the lower timestamp.LogLag
lag()
long
latency()
Returns the latency expressed in millisecond.long
lower()
Returns the lower timestamp.static Latency
noLatency(long upper, LogLag lag)
static Latency
of(List<Latency> latencies)
String
toString()
long
upper()
Returns the upper timestamp.
-
-
-
Method Detail
-
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
public LogLag lag()
-
key
public String key()
Returns the key associated with the lower timestamp.
-
asJson
public String asJson()
-
-