| 程序包 | 说明 |
|---|---|
| com.bfd.harpc.loadbalance |
| 限定符和类型 | 类和说明 |
|---|---|
class |
RandomStrategy<S>
A load balancer that selects a random backend each time a request is made..
|
class |
RoundRobinStrategy<S>
A load balancer that distributes load by randomizing the list of available
backends, and then rotating through them evenly.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <K> LoadBalancerImpl<K> |
LoadBalancerImpl.create(LoadBalancingStrategy<K> strategy,
DynamicSet<K> hostSet)
Convenience method to create a new load balancer.
|
| 构造器和说明 |
|---|
LoadBalancerImpl(LoadBalancingStrategy<K> strategy,
DynamicSet<K> hostSet)
Creates a new load balancer that will use the given strategy.
|
Copyright © 2015 Baifendian Corporation. All rights reserved.