com.netflix.astyanax.connectionpool
Interface LatencyScoreStrategy.Instance

Enclosing interface:
LatencyScoreStrategy

public static interface LatencyScoreStrategy.Instance

Single instance of this strategy associated with an endpoint


Method Summary
 void addSample(long sample)
          Add a single latency sample
 double getScore()
           
 void reset()
          Reset the score and any internal stats
 void update()
          Update the score
 

Method Detail

addSample

void addSample(long sample)
Add a single latency sample

Parameters:
sample -
now -

getScore

double getScore()
Returns:
Get the cached score for this endpoint

reset

void reset()
Reset the score and any internal stats


update

void update()
Update the score