netflix.ocelli.LoadBalancer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ocelli-core Show documentation
Show all versions of ocelli-core Show documentation
ocelli-core developed by Netflix
package netflix.ocelli;
import rx.Observable;
public interface LoadBalancer {
/**
* Return an Observable that when subscribed to will select the next C
* in the pool. Call chose() for each use of the load balancer as the Observable
* will contain some context for selecting the next C on retries.
*
* @return Observable that when subscribed to will emit a single C and complete
*/
Observable choose();
/**
* Perform cleanup and unregister
*/
void shutdown();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy