|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface LatencyScoreStrategy.Instance
Single instance of this strategy associated with an endpoint
Method Summary | |
---|---|
void |
addSample(long sample,
long now)
Add a single latency sample |
long |
getLastSampleTime()
Time of last sample added by calling addSample |
double |
getMean()
Get the mean for the sample window |
double |
getScore()
Get the cached score for this endpoint |
void |
reset()
Reset the score and any internal stats |
void |
update(long now)
Update the score for the current time |
Method Detail |
---|
void addSample(long sample, long now)
sample
- now
- double getScore()
void reset()
void update(long now)
now
- double getMean()
long getLastSampleTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |