public class RandomServiceInstanceSelector extends Object implements ServiceInstanceSelector
ServiceInstanceSelector.| Constructor and Description |
|---|
RandomServiceInstanceSelector() |
| Modifier and Type | Method and Description |
|---|---|
Optional<org.springframework.cloud.client.ServiceInstance> |
select(List<org.springframework.cloud.client.ServiceInstance> serviceInstances)
Select a service instance to get metadata.
|
public Optional<org.springframework.cloud.client.ServiceInstance> select(List<org.springframework.cloud.client.ServiceInstance> serviceInstances)
ServiceInstanceSelectorselect in interface ServiceInstanceSelectorserviceInstances - all service instanceCopyright © 2021 Pivotal Software, Inc.. All rights reserved.