public class LatencyPeriodAccumulator extends Object implements LatencyStatistic, ChainedEventObserver
| Modifier and Type | Method and Description |
|---|---|
LatencyAccumulator |
accumulator() |
double |
average() |
long |
end() |
void |
event(long timeNs,
long latencyNs)
Called to indicate an event happened.
|
boolean |
isAfter(long time) |
boolean |
isBefore(long time) |
Long |
maximum() |
Long |
minimum() |
long |
start() |
String |
toString() |
boolean |
tryAccumulate(long time,
long latency) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaverageStatistic, maximumStatistic, minimumStatisticpublic boolean isBefore(long time)
public boolean isAfter(long time)
public long start()
public long end()
public LatencyAccumulator accumulator()
public boolean tryAccumulate(long time,
long latency)
public void event(long timeNs,
long latencyNs)
ChainedEventObserverevent in interface ChainedEventObservertimeNs - the clock at event completion in nslatencyNs - the event latency in nspublic Long minimum()
minimum in interface LatencyStatisticpublic Long maximum()
maximum in interface LatencyStatisticpublic double average()
average in interface LatencyStatisticCopyright © 2018. All rights reserved.