public class ZonePreferenceServiceInstanceListSupplier extends Object implements ServiceInstanceListSupplier
ServiceInstanceListSupplier that filters instances
retrieved by the delegate by zone. The zone is retrieved from the
spring.cloud.loadbalancer.zone property. If the zone is not set or no
instances are found for the requested zone, all instances retrieved by the delegate are
returned.| Constructor and Description |
|---|
ZonePreferenceServiceInstanceListSupplier(ServiceInstanceListSupplier delegate,
LoadBalancerProperties loadBalancerProperties) |
| Modifier and Type | Method and Description |
|---|---|
Flux<List<ServiceInstance>> |
get() |
String |
getServiceId() |
public ZonePreferenceServiceInstanceListSupplier(ServiceInstanceListSupplier delegate, LoadBalancerProperties loadBalancerProperties)
public String getServiceId()
getServiceId in interface ServiceInstanceListSupplierpublic Flux<List<ServiceInstance>> get()
get in interface Supplier<Flux<List<ServiceInstance>>>Copyright © 2019 Pivotal Software, Inc.. All rights reserved.