接口 LoadBalance
-
- 所有已知实现类:
AbstractLoadBalance
,ConsistentHashLoadBalance
,LeastActiveLoadBalance
,RandomLoadBalance
,RoundRobinLoadBalance
@SPI("random") public interface LoadBalance
LoadBalance. (SPI, Singleton, ThreadSafe)- 另请参阅:
Cluster.join(Directory)
-
-
方法详细资料
-
select
@Adaptive("loadbalance") <T> Invoker<T> select(List<Invoker<T>> invokers, URL url, Invocation invocation) throws RpcException
select one invoker in list.- 参数:
invokers
- invokers.url
- refer urlinvocation
- invocation.- 返回:
- selected invoker.
- 抛出:
RpcException
-
-