com.twitter.finagle.loadbalancer
Returns a new balancer which is represented by a com.twitter.finagle.ServiceFactory.
Returns a new balancer which is represented by a com.twitter.finagle.ServiceFactory.
The load balancer's collection is usually populated concurrently. So the interface to build a balancer is wrapped in an com.twitter.util.Activity which allows us to observe this process for changes. Note, the given weights are maintained relative to load assignments not QPS. For example, a weight of 2.0 means that the endpoint will receive twice the amount of load w.r.t the other endpoints in the balancer.
The StatsReceiver which balancers report stats to. See com.twitter.finagle.loadbalancer.Balancer to see which stats are exported across implementations.
The exception returned when a balancer's collection is empty.
A thin interface around a Balancer's contructor that allows Finagle to pass in context from the stack to the balancers at construction time.
Balancers for a collection of available balancers.