public class Latency extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
Latency(int maxTrackedLatencyMillis)
Creates a Latency with a maxTrackedLatencyMillis and all fields with
zero values.
|
Latency(int maxTrackedLatencyMillis,
int minMillis,
int maxMillis,
float avg,
int totalOps,
int totalRequests,
int percent95,
int percent99,
int requestsOverflow) |
| Modifier and Type | Method and Description |
|---|---|
Latency |
clone() |
int |
get95thPercent() |
int |
get99thPercent() |
float |
getAvg() |
int |
getMax() |
int |
getMaxTrackedLatencyMillis() |
int |
getMin() |
int |
getRequestsOverflow() |
int |
getTotalOps() |
int |
getTotalRequests() |
void |
rollup(Latency other)
Add the measurements from "other" and recalculate the min, max, and
average values.
|
String |
toString() |
public Latency(int maxTrackedLatencyMillis)
public Latency(int maxTrackedLatencyMillis,
int minMillis,
int maxMillis,
float avg,
int totalOps,
int totalRequests,
int percent95,
int percent99,
int requestsOverflow)
public int getTotalOps()
public int getTotalRequests()
public int getRequestsOverflow()
public int getMaxTrackedLatencyMillis()
public int getMin()
public int getMax()
public float getAvg()
public int get95thPercent()
public int get99thPercent()
public void rollup(Latency other)
Copyright © 2024. All rights reserved.