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