com.senseidb.cluster.routing
Class RingHashLoadBalancer

java.lang.Object
  extended by com.senseidb.cluster.routing.RingHashLoadBalancer
All Implemented Interfaces:
SenseiLoadBalancer

public class RingHashLoadBalancer
extends Object
implements SenseiLoadBalancer


Constructor Summary
RingHashLoadBalancer(HashProvider hashingStrategy, int numberOfReplicas, Set<com.linkedin.norbert.javacompat.cluster.Node> nodes)
           
 
Method Summary
 RoutingInfo route(String routeParam)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RingHashLoadBalancer

public RingHashLoadBalancer(HashProvider hashingStrategy,
                            int numberOfReplicas,
                            Set<com.linkedin.norbert.javacompat.cluster.Node> nodes)
Method Detail

route

public RoutingInfo route(String routeParam)
Specified by:
route in interface SenseiLoadBalancer
Returns:
the routing information for the given routing parameter.


Copyright © 2010-2012. All Rights Reserved.