@SPI(value="random") public interface ServiceInstanceSelector
ServiceInstance Selector| Modifier and Type | Method and Description |
|---|---|
ServiceInstance |
select(URL registryURL,
List<ServiceInstance> serviceInstances)
Select an instance of
ServiceInstance by the specified service instances |
@Adaptive(value="service-instance-selector") ServiceInstance select(URL registryURL, List<ServiceInstance> serviceInstances)
ServiceInstance by the specified service instancesregistryURL - The url of registryserviceInstances - the specified service instancesServiceInstance if available, or nullCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.