public class ServiceLatencyProvider
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
endNano |
private ServiceMetricType |
serviceMetricType |
private long |
startNano |
Constructor and Description |
---|
ServiceLatencyProvider(ServiceMetricType type) |
Modifier and Type | Method and Description |
---|---|
ServiceLatencyProvider |
endTiming()
Ends the timing.
|
double |
getDurationMilli() |
java.lang.String |
getProviderId() |
ServiceMetricType |
getServiceMetricType() |
java.lang.String |
toString() |
private final long startNano
private long endNano
private final ServiceMetricType serviceMetricType
public ServiceLatencyProvider(ServiceMetricType type)
public ServiceMetricType getServiceMetricType()
public ServiceLatencyProvider endTiming()
public double getDurationMilli()
public java.lang.String getProviderId()
public java.lang.String toString()
toString
in class java.lang.Object