public class BaseWeightedStats extends Object implements WeightedStats
WeightedStats that manages tracking state and exposes the required
stats.
A sub-class or a different class (delegation) needs to call startStream(), stopStream(), startRequest(), and stopRequest(long) to drive state tracking.
WeightedStatsRequestInterceptor| Modifier | Constructor and Description |
|---|---|
protected |
BaseWeightedStats() |
| Modifier and Type | Method and Description |
|---|---|
double |
higherQuantileLatency() |
double |
lowerQuantileLatency() |
int |
pending() |
double |
predictedLatency() |
String |
toString() |
double |
weightedAvailability() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitwrappublic double lowerQuantileLatency()
lowerQuantileLatency in interface WeightedStatspublic double higherQuantileLatency()
higherQuantileLatency in interface WeightedStatspublic int pending()
pending in interface WeightedStatspublic double weightedAvailability()
weightedAvailability in interface WeightedStatspublic double predictedLatency()
predictedLatency in interface WeightedStats