netflix.ocelli.functions.Topologies Maven / Gradle / Ivy
package netflix.ocelli.functions;
import netflix.ocelli.topologies.RingTopology;
import rx.functions.Func1;
/**
* Convenience class for creating different topologies that filter clients into
* a specific arrangement that limit the set of clients this instance will communicate
* with.
*
* @author elandau
*
*/
public abstract class Topologies {
public static > RingTopology ring(K id, Func1 idFunc, Func1 countFunc) {
return new RingTopology(id, idFunc, countFunc);
}
}