| Constructor and Description |
|---|
LatencyStat(long maxTrackedLatencyMillis) |
| Modifier and Type | Method and Description |
|---|---|
Latency |
calculate()
Generate the min, max, avg, 95th and 99th percentile for the collected
measurements.
|
Latency |
calculateAndClear()
Generate the min, max, avg, 95th and 99th percentile for the collected
measurements, then clear the measurement collection.
|
void |
clear() |
boolean |
isEmpty() |
void |
set(int numRecordedOps,
long nanoLatency)
Record "numRecordedOps" (one or more) operations that took place in a
single request of "nanoLatency" nanos.
|
void |
set(long nanoLatency)
Record a single operation that took place in a request of "nanolatency"
nanos.
|
String |
toString() |
public void clear()
public Latency calculate()
public Latency calculateAndClear()
public void set(long nanoLatency)
public void set(int numRecordedOps,
long nanoLatency)
public boolean isEmpty()
Copyright © 2024. All rights reserved.