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, wait
wrap
public double lowerQuantileLatency()
lowerQuantileLatency
in interface WeightedStats
public double higherQuantileLatency()
higherQuantileLatency
in interface WeightedStats
public int pending()
pending
in interface WeightedStats
public double weightedAvailability()
weightedAvailability
in interface WeightedStats
public double predictedLatency()
predictedLatency
in interface WeightedStats