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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionasJson()static Latencykey()Returns the key associated with the lower timestamp.lag()longlatency()Returns the latency expressed in millisecond.longlower()Returns the lower timestamp.static Latencystatic LatencytoString()longupper()Returns the upper timestamp.
- 
Field Details- 
lag
- 
lowerprotected final long lower
- 
upperprotected final long upper
- 
key
 
- 
- 
Constructor Details- 
Latency
 
- 
- 
Method Details- 
noLatency
- 
fromJson
- 
of
- 
latencypublic long latency()Returns the latency expressed in millisecond.
- 
lowerpublic long lower()Returns the lower timestamp.
- 
upperpublic long upper()Returns the upper timestamp.
- 
lag
- 
keyReturns the key associated with the lower timestamp.
- 
toString
- 
asJson
 
-