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

netflix.ocelli.LoadBalancer Maven / Gradle / Ivy

There is a newer version: 0.1.0-rc.2
Show newest version
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