public static interface

LatencyScoreStrategy.Instance

com.netflix.astyanax.connectionpool.LatencyScoreStrategy.Instance
Known Indirect Subclasses

Class Overview

Single instance of this strategy associated with an endpoint

Summary

Public Methods
abstract void addSample(long sample)
Add a single latency sample
abstract double getMean()
Get the mean for the sample window
abstract double getScore()
Get the cached score for this endpoint
abstract void reset()
Reset the score and any internal stats
abstract void update()
Update the score

Public Methods

public abstract void addSample (long sample)

Add a single latency sample

public abstract double getMean ()

Get the mean for the sample window

public abstract double getScore ()

Get the cached score for this endpoint

public abstract void reset ()

Reset the score and any internal stats

public abstract void update ()

Update the score