类 RandomServiceInstanceSelector
- java.lang.Object
-
- org.apache.dubbo.registry.client.selector.RandomServiceInstanceSelector
-
- 所有已实现的接口:
ServiceInstanceSelector
public class RandomServiceInstanceSelector extends Object implements ServiceInstanceSelector
TheServiceInstanceSelectorimplementation based on Random algorithm- 从以下版本开始:
- 2.7.5
- 另请参阅:
ThreadLocalRandom,ServiceInstanceSelector
-
-
构造器概要
构造器 构造器 说明 RandomServiceInstanceSelector()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 ServiceInstanceselect(URL registryURL, List<ServiceInstance> serviceInstances)Select an instance ofServiceInstanceby the specifiedservice instances
-
-
-
方法详细资料
-
select
public ServiceInstance select(URL registryURL, List<ServiceInstance> serviceInstances)
从接口复制的说明:ServiceInstanceSelectorSelect an instance ofServiceInstanceby the specifiedservice instances- 指定者:
select在接口中ServiceInstanceSelector- 参数:
registryURL- Theurlof registryserviceInstances- the specifiedservice instances- 返回:
- an instance of
ServiceInstanceif available, ornull
-
-