All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bazaarvoice.ostrich.LoadBalanceAlgorithm Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package com.bazaarvoice.ostrich;

public interface LoadBalanceAlgorithm {
    /**
     * Selects an end point to use based on a load balancing algorithm.  If no end point can be chosen, then
     * null is returned.
     *
     * @param endPoints The end points to choose from.
     * @param statistics Usage statistics about the end points in case the load balancing algorithm needs some
     *                   knowledge of the service pool's state.
     * @return Which end point to use or null if one couldn't be chosen.
     */
    ServiceEndPoint choose(Iterable endPoints, ServicePoolStatistics statistics);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy