public class

SmaLatencyScoreStrategyInstanceImpl

extends Object
implements LatencyScoreStrategy.Instance
java.lang.Object
   ↳ com.netflix.astyanax.connectionpool.impl.SmaLatencyScoreStrategyInstanceImpl

Summary

Public Constructors
SmaLatencyScoreStrategyInstanceImpl(SmaLatencyScoreStrategyImpl strategy)
Public Methods
void addSample(long sample)
Add a single latency sample
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()
Update the score
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.netflix.astyanax.connectionpool.LatencyScoreStrategy.Instance

Public Constructors

public SmaLatencyScoreStrategyInstanceImpl (SmaLatencyScoreStrategyImpl strategy)

Public Methods

public void addSample (long sample)

Add a single latency sample

public double getMean ()

Get the mean for the sample window

public double getScore ()

Get the cached score for this endpoint

public void reset ()

Reset the score and any internal stats

public void update ()

Update the score