netflix.ocelli.loadbalancer.weighting.WeightingStrategy Maven / Gradle / Ivy
package netflix.ocelli.loadbalancer.weighting;
import java.util.List;
import rx.functions.Func1;
/**
* Contract for strategy to determine client weights from a list of clients
*
* @author elandau
*
* @param
*/
public interface WeightingStrategy extends Func1, ClientsAndWeights> {
/**
* Run the weighting algorithm on the active set of clients and their associated statistics and
* return an object containing the weights
*/
ClientsAndWeights call(List clients);
}