public class Metric extends Object
Constructor | Description |
---|---|
Metric(String name,
boolean success) |
|
Metric(String name,
int count,
int elapsedNs,
boolean success) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
int |
getCount() |
|
long |
getElapsedNs() |
|
long |
getMaxNs() |
|
long |
getMinNs() |
|
String |
getName() |
|
int |
hashCode() |
|
void |
incrementCount() |
|
boolean |
isSuccess() |
|
void |
record(long elapsedNs) |
|
String |
toString() |
public Metric(String name, int count, int elapsedNs, boolean success)
public Metric(String name, boolean success)
public String getName()
public int getCount()
public long getElapsedNs()
public long getMinNs()
public long getMaxNs()
public boolean isSuccess()
public void record(long elapsedNs)
public void incrementCount()