接口 ServiceInstanceSelector
-
- 所有已知实现类:
RandomServiceInstanceSelector
@SPI("random") public interface ServiceInstanceSelector
TheServiceInstanceSelector- 从以下版本开始:
- 2.7.5
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ServiceInstanceselect(URL registryURL, List<ServiceInstance> serviceInstances)Select an instance ofServiceInstanceby the specifiedservice instances
-
-
-
方法详细资料
-
select
@Adaptive("service-instance-selector") ServiceInstance select(URL registryURL, List<ServiceInstance> serviceInstances)
Select an instance ofServiceInstanceby the specifiedservice instances- 参数:
registryURL- Theurlof registryserviceInstances- the specifiedservice instances- 返回:
- an instance of
ServiceInstanceif available, ornull
-
-